diff --git a/CHANGELOG.md b/CHANGELOG.md index 34517cb3c..6fe809707 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,193 @@ +# v34.1.0b1 + +Kubernetes API Version: v1.34.1 + + +# v34.1.0a1 + +Kubernetes API Version: v1.34.1 + +### API Change +- Added `omitempty` and `opt` tag to the API `v1beta2` AdminAccess type in the `DeviceRequestAllocationResult` struct. ([kubernetes/kubernetes#132338](https://github.com/kubernetes/kubernetes/pull/132338), [@PatrickLaabs](https://github.com/PatrickLaabs)) +- Added a `runtime.ApplyConfiguration` interface implemented by all generated apply configuration types. ([kubernetes/kubernetes#132194](https://github.com/kubernetes/kubernetes/pull/132194), [@alvaroaleman](https://github.com/alvaroaleman)) [SIG API Machinery and Instrumentation] +- Added a detailed event for in-place pod vertical scaling completed, improving cluster management and debugging. ([kubernetes/kubernetes#130387](https://github.com/kubernetes/kubernetes/pull/130387), [@shiya0705](https://github.com/shiya0705)) [SIG API Machinery, Apps, Autoscaling, Node, Scheduling and Testing] +- Added a mechanism for configurable container restarts: _container-level restart rules_. This was an alpha feature behind the `ContainerRestartRules` feature gate. ([kubernetes/kubernetes#132642](https://github.com/kubernetes/kubernetes/pull/132642), [@yuanwang04](https://github.com/yuanwang04)) [SIG API Machinery, Apps, Node and Testing] +- Added a new `FileKeyRef` field to containers, allowing them to load variables from files by setting this field. + + Introduced the `EnvFiles` feature gate to govern activation of this functionality. ([kubernetes/kubernetes#132626](https://github.com/kubernetes/kubernetes/pull/132626), [@HirazawaUi](https://github.com/HirazawaUi)) [SIG API Machinery, Apps, Node and Testing] +- Added driver-owned fields in `ResourceSlice` to mark whether the device was shareable among multiple resource claims (or requests) and to specify how each capacity could be shared between different requests. + - Added user-owned fields in `ResourceClaim` to specify resource requirements against each device capacity. + - Added scheduler-owned field in `ResourceClaim.Status` to specify how much device capacity is reserved for a specific request. + - Added an additional identifier to `ResourceClaim.Status` for the device supports multiple allocations. + - Added a new constraint type to enforce uniqueness of specified attributes across all allocated devices. ([kubernetes/kubernetes#132522](https://github.com/kubernetes/kubernetes/pull/132522), [@sunya-ch](https://github.com/sunya-ch)) [SIG API Machinery, Apps, Architecture, CLI, Cluster Lifecycle, Network, Node, Release, Scheduling and Testing] +- Added new optional APIs in `ResouceSlice.Basic` and `ResourceClaim.Status.AllocatedDeviceStatus`. ([kubernetes/kubernetes#130160](https://github.com/kubernetes/kubernetes/pull/130160), [@KobayashiD27](https://github.com/KobayashiD27)) [SIG API Machinery, Apps, Architecture, Node, Release, Scheduling and Testing] +- Added support for specifying `controlplane` or `cluster` egress selectors in JWT authenticators via the `issuer.egressSelectorType` field in the `AuthenticationConfiguration.jwt` array. If unset, the previous behavior of using no egress selector is preserved. This functionality requires the `StructuredAuthenticationConfigurationEgressSelector` beta feature gate (enabled by default). ([kubernetes/kubernetes#132768](https://github.com/kubernetes/kubernetes/pull/132768), [@enj](https://github.com/enj)) [SIG API Machinery, Auth and Testing] +- Added support in the Kubelet for monitoring the health of devices allocated via Dynamic Resource Allocation (DRA) and report it in the `pod.status.containerStatuses.allocatedResourcesStatus` field. This required the DRA plugin to implement the new v1alpha1 `NodeHealth` gRPC service. This feature was controlled by the `ResourceHealthStatus` feature gate. ([kubernetes/kubernetes#130606](https://github.com/kubernetes/kubernetes/pull/130606), [@Jpsassine](https://github.com/Jpsassine)) [SIG Apps, Architecture, Auth, CLI, Cloud Provider, Cluster Lifecycle, Etcd, Network, Node, Release, Scheduling, Storage and Testing] +- Added support in the kubelet's image pull credential tracking for service account-based verification. When an image was pulled using service account credentials via external credential providers, subsequent Pods using the same service account (UID, name, and namespace) could access the cached image without re-authentication for the lifetime of that service account. ([kubernetes/kubernetes#132771](https://github.com/kubernetes/kubernetes/pull/132771), [@aramase](https://github.com/aramase)) [SIG Auth, Node and Testing] +- Added validation to reject Pods using the `PodLevelResources` feature on Windows OS due to lack of support. The API server rejected Pods with pod-level resources and a `Pod.spec.os.name` targeting Windows. Kubelet on nodes running Windows also rejected Pods with pod-level resources at the admission phase. ([kubernetes/kubernetes#133046](https://github.com/kubernetes/kubernetes/pull/133046), [@toVersus](https://github.com/toVersus)) [SIG Apps and Node] +- Added warnings when creating headless service with set `loadBalancerIP`,`externalIPs` and/or `SessionAffinity`. ([kubernetes/kubernetes#132214](https://github.com/kubernetes/kubernetes/pull/132214), [@Peac36](https://github.com/Peac36)) +- Allowed `pvc.spec.VolumeAttributesClassName` to change from non-nil to nil. ([kubernetes/kubernetes#132106](https://github.com/kubernetes/kubernetes/pull/132106), [@AndrewSirenko](https://github.com/AndrewSirenko)) +- Allowed setting the `hostnameOverride` field in `PodSpec` to specify any RFC 1123 DNS subdomain as the pod's hostname. The `HostnameOverride` feature gate was introduced to control enablement of this functionality. ([kubernetes/kubernetes#132558](https://github.com/kubernetes/kubernetes/pull/132558), [@HirazawaUi](https://github.com/HirazawaUi)) [SIG API Machinery, Apps, Network, Node and Testing] +- Changed underlying logic for `Eviction Manager` helper functions. ([kubernetes/kubernetes#132277](https://github.com/kubernetes/kubernetes/pull/132277), [@KevinTMtz](https://github.com/KevinTMtz)) [SIG Node, Scheduling and Testing] +- Changed underlying logic to propagate pod-level hugepage cgroup to containers when they did not specify hugepage resources. + - Added validation to enforce the hugepage aggregated container limits to be smaller than or equal to pod-level limits. This was already enforced with the defaulted requests from the specified limits, however it did not make it clear about both hugepage requests and limits. ([kubernetes/kubernetes#131089](https://github.com/kubernetes/kubernetes/pull/131089), [@KevinTMtz](https://github.com/KevinTMtz)) [SIG Apps, Node and Testing] +- Corrected the documentation to clarify that `podSelector` is optional and described its default behavior. ([kubernetes/kubernetes#131354](https://github.com/kubernetes/kubernetes/pull/131354), [@tomoish](https://github.com/tomoish)) +- DRA API: resource.k8s.io/v1alpha3 now only contains DeviceTaintRule. All other types got removed because they became obsolete when introducing the v1beta1 API in 1.32. + before updating a cluster where resourceclaims, resourceclaimtemplates, deviceclasses, or resourceslices might have been stored using Kubernetes < 1.32, delete all of those resources before updating and recreate them as needed while running Kubernetes >= 1.32. ([kubernetes/kubernetes#132000](https://github.com/kubernetes/kubernetes/pull/132000), [@pohly](https://github.com/pohly)) [SIG Etcd, Node, Scheduling and Testing] +- DRA: Starting with Kubernetes 1.34, the alpha-level `resource.k8s.io/admin-access` label has been updated to `resource.kubernetes.io/admin-access`. Admins using the alpha feature and updating from 1.33 can set both labels, upgrade, then remove `resource.k8s.io/admin-access` when no downgrade is going to happen anymore. ([kubernetes/kubernetes#131996](https://github.com/kubernetes/kubernetes/pull/131996), [@ritazh](https://github.com/ritazh)) [SIG Node and Testing] +- DRA: The scheduler plugin prevented abnormal filter runtimes by timing out after 10 seconds. This was configurable via the plugin configuration's `FilterTimeout`. Setting it to zero disabled the timeout and restored the behavior of Kubernetes <= 1.33. ([kubernetes/kubernetes#132033](https://github.com/kubernetes/kubernetes/pull/132033), [@pohly](https://github.com/pohly)) [SIG Node, Scheduling and Testing] +- DRA: When the prioritized list feature was used in a request and the resulting number of allocated devices exceeded the number of allowed devices per claim, the scheduler aborted the attempt to allocate devices early. Previously, it tried to many different combinations, which could take a long time. ([kubernetes/kubernetes#130593](https://github.com/kubernetes/kubernetes/pull/130593), [@mortent](https://github.com/mortent)) [SIG Apps, Node, Scheduling and Testing] +- DRA: removed support for the v1alpha4 kubelet gRPC API (added in 1.31, superseded in 1.32). DRA drivers using the helper package from Kubernetes >= 1.32 use the v1beta1 API and continue to be supported. ([kubernetes/kubernetes#132574](https://github.com/kubernetes/kubernetes/pull/132574), [@pohly](https://github.com/pohly)) +- Deprecated `StreamingConnectionIdleTimeout` field of the kubelet config. ([kubernetes/kubernetes#131992](https://github.com/kubernetes/kubernetes/pull/131992), [@lalitc375](https://github.com/lalitc375)) +- Dynamic Resource Allocation: Graduated core functionality to general availability (GA). This newly stable feature uses the _structured parameters_ flavor of DRA. ([kubernetes/kubernetes#132706](https://github.com/kubernetes/kubernetes/pull/132706), [@pohly](https://github.com/pohly)) [SIG API Machinery, Apps, Auth, Autoscaling, Etcd, Node, Scheduling and Testing] +- Enabled kube-apiserver support for `PodCertificateRequest` and `PodCertificate` projected volumes (behind the `PodCertificateRequest` feature gate). ([kubernetes/kubernetes#128010](https://github.com/kubernetes/kubernetes/pull/128010), [@ahmedtd](https://github.com/ahmedtd)) [SIG API Machinery, Apps, Auth, Cloud Provider, Etcd, Node, Storage and Testing] +- Extended resources backed by DRA feature allowed cluster operator to specify `extendedResourceName` in `DeviceClass`, and application operator to continue using extended resources in pod's requests to request for DRA devices matching the DeviceClass. + + `NodeResourcesFit` plugin scoring didn't work for extended resources backed by DRA. ([kubernetes/kubernetes#130653](https://github.com/kubernetes/kubernetes/pull/130653), [@yliaog](https://github.com/yliaog)) [SIG API Machinery, Apps, Auth, Node, Scheduling and Testing] +- Extended the NodePorts scheduling plugin to consider hostPorts used by restartable init containers. ([kubernetes/kubernetes#132040](https://github.com/kubernetes/kubernetes/pull/132040), [@avrittrohwer](https://github.com/avrittrohwer)) [SIG Scheduling and Testing] +- Fixed a 1.33 regression that causes a nil panic in kube-scheduler when aggregating resource requested across container's spec and status. ([kubernetes/kubernetes#132895](https://github.com/kubernetes/kubernetes/pull/132895), [@yue9944882](https://github.com/yue9944882)) [SIG Node and Scheduling] +- Fixed prerelease lifecycle for `PodCertificateRequest`. ([kubernetes/kubernetes#133350](https://github.com/kubernetes/kubernetes/pull/133350), [@carlory](https://github.com/carlory)) +- Introduced OpenAPI format support for `k8s-short-name` and `k8s-long-name` in CustomResourceDefinition schemas. ([kubernetes/kubernetes#132504](https://github.com/kubernetes/kubernetes/pull/132504), [@jpbetz](https://github.com/jpbetz)) [SIG API Machinery, Architecture, Auth, CLI, Cloud Provider, Cluster Lifecycle, Instrumentation, Network, Node, Scheduling and Storage] +- Introduced the `admissionregistration.k8s.io/v1beta1/MutatingAdmissionPolicy` API type. To enable, enable the `MutatingAdmissionPolicy` feature gate (which was off by default) and set `--runtime-config=admissionregistration.k8s.io/v1beta1=true` on the kube-apiserver. + Note that the default stored version remained alpha in 1.34, and whoever enabled beta during 1.34 needed to run a storage migration yourself to ensure you don't depend on alpha data in etcd. ([kubernetes/kubernetes#132821](https://github.com/kubernetes/kubernetes/pull/132821), [@cici37](https://github.com/cici37)) [SIG API Machinery, Etcd and Testing] +- Kube-apiserver: Added support for disabling caching of authorization webhook decisions in the `--authorization-config` file. The new fields `cacheAuthorizedRequests` and `cacheUnauthorizedRequests` could be set to `false` to prevent caching for authorized or unauthorized requests. See the https://kubernetes.io/docs/reference/access-authn-authz/authorization/#using-configuration-file-for-authorization for more details. ([kubernetes/kubernetes#129237](https://github.com/kubernetes/kubernetes/pull/129237), [@rfranzke](https://github.com/rfranzke)) [SIG API Machinery and Auth] +- Kube-apiserver: Promoted the `StructuredAuthenticationConfiguration` feature gate to GA. ([kubernetes/kubernetes#131916](https://github.com/kubernetes/kubernetes/pull/131916), [@aramase](https://github.com/aramase)) [SIG API Machinery, Auth and Testing] +- Kube-apiserver: the AuthenticationConfiguration type accepted in `--authentication-config` files has been promoted to `apiserver.config.k8s.io/v1`. ([kubernetes/kubernetes#131752](https://github.com/kubernetes/kubernetes/pull/131752), [@aramase](https://github.com/aramase)) [SIG API Machinery, Auth and Testing] +- Kube-log-runner: Added the `-log-file-size` parameter to rotate log output into a new file once it reached a certain size. Introduced `-log-file-age` to enable automatic removal of old output files, and `-flush-interval` to support periodic flushing. ([kubernetes/kubernetes#127667](https://github.com/kubernetes/kubernetes/pull/127667), [@zylxjtu](https://github.com/zylxjtu)) [SIG API Machinery, Apps, Architecture, Auth, Autoscaling, CLI, Cloud Provider, Cluster Lifecycle, Etcd, Instrumentation, Network, Node, Release, Scheduling, Storage, Testing and Windows] +- Kubectl: Graduated kuberc support to beta. A `kuberc` configuration file provided a mechanism for customizing `kubectl` behavior (distinct from kubeconfig, which configures cluster access across different clients). ([kubernetes/kubernetes#131818](https://github.com/kubernetes/kubernetes/pull/131818), [@soltysh](https://github.com/soltysh)) [SIG CLI and Testing] +- Promoted Job Pod Replacement Policy to general availability. The `JobPodReplacementPolicy` feature gate was locked to `true` and will be removed in a future Kubernetes release. ([kubernetes/kubernetes#132173](https://github.com/kubernetes/kubernetes/pull/132173), [@dejanzele](https://github.com/dejanzele)) [SIG Apps and Testing] +- Promoted `MutableCSINodeAllocatableCount` to beta. ([kubernetes/kubernetes#132429](https://github.com/kubernetes/kubernetes/pull/132429), [@torredil](https://github.com/torredil)) +- Promoted feature-gate `VolumeAttributesClass` to GA + - Promoted API `VolumeAttributesClass` and `VolumeAttributesClassList` to `storage.k8s.io/v1`. ([kubernetes/kubernetes#131549](https://github.com/kubernetes/kubernetes/pull/131549), [@carlory](https://github.com/carlory)) [SIG API Machinery, Apps, Auth, CLI, Etcd, Storage and Testing] +- Promoted the `APIServerTracing` feature gate to GA. The `--tracing-config-file` flag accepted `TracingConfiguration` in version `apiserver.config.k8s.io/v1` (with no changes from `apiserver.config.k8s.io/v1beta1`). ([kubernetes/kubernetes#132340](https://github.com/kubernetes/kubernetes/pull/132340), [@dashpole](https://github.com/dashpole)) [SIG API Machinery and Testing] +- Promoted the `AuthorizeWithSelectors` and `AuthorizeNodeWithSelectors` feature gates to stable and locked on. ([kubernetes/kubernetes#132656](https://github.com/kubernetes/kubernetes/pull/132656), [@liggitt](https://github.com/liggitt)) [SIG API Machinery, Auth and Testing] +- Promoted the `KubeletTracing` feature gate to GA. ([kubernetes/kubernetes#132341](https://github.com/kubernetes/kubernetes/pull/132341), [@dashpole](https://github.com/dashpole)) [SIG Instrumentation and Node] +- Promoted the `RelaxedEnvironmentVariableValidation` feature gate to GA and locked it in the enabled state by default. ([kubernetes/kubernetes#132054](https://github.com/kubernetes/kubernetes/pull/132054), [@HirazawaUi](https://github.com/HirazawaUi)) [SIG Apps, Architecture, Node and Testing] +- Removed an inaccurate statement about requiring ports when the Pod spec `hostNetwork` field was set. ([kubernetes/kubernetes#130994](https://github.com/kubernetes/kubernetes/pull/130994), [@BenTheElder](https://github.com/BenTheElder)) [SIG Network and Node] +- Removed deprecated `gogo` protocol definitions from `k8s.io/kubelet/pkg/apis/pluginregistration` in favor of `google.golang.org/protobuf`. ([kubernetes/kubernetes#132773](https://github.com/kubernetes/kubernetes/pull/132773), [@saschagrunert](https://github.com/saschagrunert)) +- Removed deprecated gogo protocol definitions from `k8s.io/cri-api` in favor of `google.golang.org/protobuf`. ([kubernetes/kubernetes#128653](https://github.com/kubernetes/kubernetes/pull/128653), [@saschagrunert](https://github.com/saschagrunert)) [SIG API Machinery, Auth, Instrumentation, Node and Testing] +- Replaced Boolean-pointer-helper functions with the `k8s.io/utils/ptr` implementations. ([kubernetes/kubernetes#132794](https://github.com/kubernetes/kubernetes/pull/132794), [@PatrickLaabs](https://github.com/PatrickLaabs)) [SIG API Machinery, Auth, CLI, Node and Testing] +- Replaced `boolPtrFn` helper functions with the "k8s.io/utils/ptr" implementation. ([kubernetes/kubernetes#132907](https://github.com/kubernetes/kubernetes/pull/132907), [@PatrickLaabs](https://github.com/PatrickLaabs)) +- Replaced deprecated package `k8s.io/utils/pointer` with `k8s.io/utils/ptr` for the apiextensions-apiserver apiextensions. ([kubernetes/kubernetes#132723](https://github.com/kubernetes/kubernetes/pull/132723), [@PatrickLaabs](https://github.com/PatrickLaabs)) +- Replaced deprecated package `k8s.io/utils/pointer` with `k8s.io/utils/ptr` for the apiserver (1/2). ([kubernetes/kubernetes#132751](https://github.com/kubernetes/kubernetes/pull/132751), [@PatrickLaabs](https://github.com/PatrickLaabs)) [SIG API Machinery and Auth] +- Replaced deprecated package `k8s.io/utils/pointer` with `k8s.io/utils/ptr` for the component-base. ([kubernetes/kubernetes#132754](https://github.com/kubernetes/kubernetes/pull/132754), [@PatrickLaabs](https://github.com/PatrickLaabs)) [SIG API Machinery, Architecture, Instrumentation and Scheduling] +- Replaced deprecated package `k8s.io/utils/pointer` with `k8s.io/utils/ptr` for the kube-aggregator apiregistration. ([kubernetes/kubernetes#132701](https://github.com/kubernetes/kubernetes/pull/132701), [@PatrickLaabs](https://github.com/PatrickLaabs)) +- Simplied validation error message for invalid fields by removing redundant field name. ([kubernetes/kubernetes#132513](https://github.com/kubernetes/kubernetes/pull/132513), [@xiaoweim](https://github.com/xiaoweim)) [SIG API Machinery, Apps, Auth, Node and Scheduling] +- Simplied validation error message for required fields by removing redundant messages. ([kubernetes/kubernetes#132472](https://github.com/kubernetes/kubernetes/pull/132472), [@xiaoweim](https://github.com/xiaoweim)) [SIG API Machinery, Apps, Architecture, Auth, Cloud Provider, Network, Node and Storage] +- The `KubeletServiceAccountTokenForCredentialProviders` feature was beta and enabled by default. ([kubernetes/kubernetes#133017](https://github.com/kubernetes/kubernetes/pull/133017), [@aramase](https://github.com/aramase)) [SIG Auth and Node] +- The `conditionType` is "oneof" approved/denied check of CertificateSigningRequest's `.status.conditions` field was migrated to declarative validation. + If the `DeclarativeValidation` feature gate was enabled, mismatches with existing validation are reported via metrics. + If the `DeclarativeValidationTakeover` feature gate was enabled, declarative validation was the primary source of errors for migrated fields. ([kubernetes/kubernetes#133013](https://github.com/kubernetes/kubernetes/pull/133013), [@aaron-prindle](https://github.com/aaron-prindle)) [SIG API Machinery and Auth] +- The fallback behavior of the Downward API's `resourceFieldRef` field was updated to account for pod-level resources: if container-level limits were not set, pod-level limits were now used before falling back to node allocatable resources. ([kubernetes/kubernetes#132605](https://github.com/kubernetes/kubernetes/pull/132605), [@toVersus](https://github.com/toVersus)) [SIG Node, Scheduling and Testing] +- The validation of `replicas` field in the ReplicationController `/scale` subresource has been migrated to declarative validation. + If the `DeclarativeValidation` feature gate is enabled, mismatches with existing validation are reported via metrics. + If the `DeclarativeValidationTakeover` feature gate is enabled, declarative validation is the primary source of errors for migrated fields. ([kubernetes/kubernetes#131664](https://github.com/kubernetes/kubernetes/pull/131664), [@jpbetz](https://github.com/jpbetz)) [SIG API Machinery and Apps] +- The validation-gen code generator generated validation code that supported validation ratcheting. ([kubernetes/kubernetes#132236](https://github.com/kubernetes/kubernetes/pull/132236), [@yongruilin](https://github.com/yongruilin)) [SIG API Machinery, Apps, Auth and Node] +- Updated `IsDNS1123SubdomainWithUnderscore` so that, when it returned an error, it also returned the correct regex information (`dns1123SubdomainFmtWithUnderscore`). ([kubernetes/kubernetes#132034](https://github.com/kubernetes/kubernetes/pull/132034), [@ChosenFoam](https://github.com/ChosenFoam)) +- Updated etcd version to v3.6.0. ([kubernetes/kubernetes#131501](https://github.com/kubernetes/kubernetes/pull/131501), [@joshjms](https://github.com/joshjms)) [SIG API Machinery, Cloud Provider, Cluster Lifecycle, Etcd and Testing] +- Updated the `v1` credential provider configuration to include the `tokenAttributes.cacheType` field. This field is required and must be set to either `ServiceAccount` or `Token` when configuring a provider that uses a service account to fetch registry credentials. ([kubernetes/kubernetes#132617](https://github.com/kubernetes/kubernetes/pull/132617), [@aramase](https://github.com/aramase)) [SIG Auth, Node and Testing] +- Zero-value `metadata.creationTimestamp` values are now omitted and no longer serialize an explicit `null` in JSON, YAML, and CBOR output ([kubernetes/kubernetes#130989](https://github.com/kubernetes/kubernetes/pull/130989), [@liggitt](https://github.com/liggitt)) [SIG API Machinery, Apps, Architecture, Auth, CLI, Cloud Provider, Cluster Lifecycle, Etcd, Instrumentation, Network, Node, Scheduling, Storage and Testing] +- `AppArmor` profiles specified in the Pod or container `SecurityContext` were no longer copied to deprecated `AppArmor` annotations (prefix `container.apparmor.security.beta.kubernetes.io/`). Anything that inspected the deprecated annotations must be migrated to use the `SecurityContext` fields instead. ([kubernetes/kubernetes#131989](https://github.com/kubernetes/kubernetes/pull/131989), [@tallclair](https://github.com/tallclair)) +- `MultiCIDRServiceAllocator` was locked and enabled by default, `DisableAllocatorDualWrite` was enabled by default. ([kubernetes/kubernetes#131318](https://github.com/kubernetes/kubernetes/pull/131318), [@aojea](https://github.com/aojea)) [SIG API Machinery, Apps, Architecture, Auth, Etcd, Network and Testing] +- Add a new `FileKeyRef` field to containers, allowing them to load variables from files by setting this field. + + Introduce the EnvFiles feature gate to govern activation of this functionality. ([kubernetes/kubernetes#132626](https://github.com/kubernetes/kubernetes/pull/132626), [@HirazawaUi](https://github.com/HirazawaUi)) [SIG API Machinery, Apps, Node and Testing] +- Add driver-owned fields in ResourceSlice to mark whether the device is shareable among multiple resource claims (or requests) and to specify how each capacity can be shared between different requests. + - Add user-owned fields in ResourceClaim to specify resource requirements against each device capacity. + - Add scheduler-owned field in ResourceClaim.Status to specify how much device capacity is reserved for a specific request. + - Add an additional identifier to ResourceClaim.Status for the device supports multiple allocations. + - Add a new constraint type to enforce uniqueness of specified attributes across all allocated devices. ([kubernetes/kubernetes#132522](https://github.com/kubernetes/kubernetes/pull/132522), [@sunya-ch](https://github.com/sunya-ch)) [SIG API Machinery, Apps, Architecture, CLI, Cluster Lifecycle, Network, Node, Release, Scheduling and Testing] +- Add new optional APIs in ResouceSlice.Basic and ResourceClaim.Status.AllocatedDeviceStatus. ([kubernetes/kubernetes#130160](https://github.com/kubernetes/kubernetes/pull/130160), [@KobayashiD27](https://github.com/KobayashiD27)) [SIG API Machinery, Apps, Architecture, Node, Release, Scheduling and Testing] +- Added a mechanism for configurable container restarts: _container level restart rules_. This is an alpha feature behind the `ContainerRestartRules` feature gate. ([kubernetes/kubernetes#132642](https://github.com/kubernetes/kubernetes/pull/132642), [@yuanwang04](https://github.com/yuanwang04)) [SIG API Machinery, Apps, Node and Testing] +- Added detailed event for in-place pod vertical scaling completed, improving cluster management and debugging ([kubernetes/kubernetes#130387](https://github.com/kubernetes/kubernetes/pull/130387), [@shiya0705](https://github.com/shiya0705)) [SIG API Machinery, Apps, Autoscaling, Node, Scheduling and Testing] +- Added validation to reject Pods using the `PodLevelResources` feature on Windows OS due to lack of support. The API server rejects Pods with Pod-level resources and a `Pod.spec.os.name` targeting Windows. Kubelet on nodes running Windows also rejects Pods with Pod-level resources at admission phase. ([kubernetes/kubernetes#133046](https://github.com/kubernetes/kubernetes/pull/133046), [@toVersus](https://github.com/toVersus)) [SIG Apps and Node] +- Adds warnings when creating headless service with set loadBalancerIP,externalIPs and/or SessionAffinity ([kubernetes/kubernetes#132214](https://github.com/kubernetes/kubernetes/pull/132214), [@Peac36](https://github.com/Peac36)) [SIG Network] +- Allow pvc.spec.VolumeAttributesClassName to go from non-nil to nil ([kubernetes/kubernetes#132106](https://github.com/kubernetes/kubernetes/pull/132106), [@AndrewSirenko](https://github.com/AndrewSirenko)) [SIG Apps] +- Allows setting the `hostnameOverride` field in `PodSpec` to specify any RFC 1123 DNS subdomain as the pod's hostname. The `HostnameOverride` feature gate has been introduced to control enablement of this functionality. ([kubernetes/kubernetes#132558](https://github.com/kubernetes/kubernetes/pull/132558), [@HirazawaUi](https://github.com/HirazawaUi)) [SIG API Machinery, Apps, Network, Node and Testing] +- AppArmor profiles specified in the pod or container SecurityContext are no longer copied to deprecated AppArmor annotations (prefix `container.apparmor.security.beta.kubernetes.io/`). Anything that inspects the deprecated annotations must be migrated to use the SecurityContext fields instead. ([kubernetes/kubernetes#131989](https://github.com/kubernetes/kubernetes/pull/131989), [@tallclair](https://github.com/tallclair)) [SIG Node] +- Changes underlying logic to propagate Pod level hugepage cgroup to containers when they do not specify hugepage resources. + - Adds validation to enforce the hugepage aggregated container limits to be smaller or equal to pod-level limits. This was already enforced with the defaulted requests from the specified limits, however it did not make it clear about both hugepage requests and limits. ([kubernetes/kubernetes#131089](https://github.com/kubernetes/kubernetes/pull/131089), [@KevinTMtz](https://github.com/KevinTMtz)) [SIG Apps, Node and Testing] +- DRA: the scheduler plugin now prevents abnormal filter runtimes by timing out after 10 seconds. This is configurable via the plugin configuration's `FilterTimeout`. Setting it to zero disables the timeout and restores the behavior of Kubernetes <= 1.33. ([kubernetes/kubernetes#132033](https://github.com/kubernetes/kubernetes/pull/132033), [@pohly](https://github.com/pohly)) [SIG Node, Scheduling and Testing] +- DRA: when the prioritized list feature is used in a request and the resulting number of allocated devices exceeds the number of allowed devices per claim, the scheduler aborts the attempt to allocate devices early. Previously it tried to many different combinations, which can take a long time. ([kubernetes/kubernetes#130593](https://github.com/kubernetes/kubernetes/pull/130593), [@mortent](https://github.com/mortent)) [SIG Apps, Node, Scheduling and Testing] +- Dynamic Resource Allocation: graduated core functionality to general availability (GA). This newly stable feature uses the _structured parameters_ flavor of DRA. ([kubernetes/kubernetes#132706](https://github.com/kubernetes/kubernetes/pull/132706), [@pohly](https://github.com/pohly)) [SIG API Machinery, Apps, Auth, Autoscaling, Etcd, Node, Scheduling and Testing] +- Enable kube-apiserver support for PodCertificateRequest and PodCertificate projected volumes (behind the PodCertificateRequest feature gate). ([kubernetes/kubernetes#128010](https://github.com/kubernetes/kubernetes/pull/128010), [@ahmedtd](https://github.com/ahmedtd)) [SIG API Machinery, Apps, Auth, Cloud Provider, Etcd, Node, Storage and Testing] +- Extended resources backed by DRA feature allows cluster operator to specify extendedResourceName in DeviceClass, and application operator to continue using extended resources in pod's requests to request for DRA devices matching the DeviceClass. + + NodeResourcesFit plugin scoring won't work for extended resources backed by DRA ([kubernetes/kubernetes#130653](https://github.com/kubernetes/kubernetes/pull/130653), [@yliaog](https://github.com/yliaog)) [SIG API Machinery, Apps, Auth, Node, Scheduling and Testing] +- Fix prerelease lifecycle for PodCertificateRequest ([kubernetes/kubernetes#133350](https://github.com/kubernetes/kubernetes/pull/133350), [@carlory](https://github.com/carlory)) [SIG Auth] +- Fixes a 1.33 regression that can cause a nil panic in kube-scheduler when aggregating resource requests across container's spec and status. ([kubernetes/kubernetes#132895](https://github.com/kubernetes/kubernetes/pull/132895), [@yue9944882](https://github.com/yue9944882)) [SIG Node and Scheduling] +- Introduced the admissionregistration.k8s.io/v1beta1/MutatingAdmissionPolicy API type. + To enable, enable the `MutatingAdmissionPolicy` feature gate (which is off by default) and set `--runtime-config=admissionregistration.k8s.io/v1beta1=true` on the kube-apiserver. + Note that the default stored version remains alpha in 1.34 and whoever enabled beta during 1.34 needs to run a storage migration yourself to ensure you don't depend on alpha data in etcd. ([kubernetes/kubernetes#132821](https://github.com/kubernetes/kubernetes/pull/132821), [@cici37](https://github.com/cici37)) [SIG API Machinery, Etcd and Testing] +- No, changes underlying logic for Eviction Manager helper functions ([kubernetes/kubernetes#132277](https://github.com/kubernetes/kubernetes/pull/132277), [@KevinTMtz](https://github.com/KevinTMtz)) [SIG Node, Scheduling and Testing] +- Promote MutableCSINodeAllocatableCount to Beta. ([kubernetes/kubernetes#132429](https://github.com/kubernetes/kubernetes/pull/132429), [@torredil](https://github.com/torredil)) [SIG Storage] +- Promoted feature-gate `VolumeAttributesClass` to GA + - Promoted API `VolumeAttributesClass` and `VolumeAttributesClassList` to `storage.k8s.io/v1`. ([kubernetes/kubernetes#131549](https://github.com/kubernetes/kubernetes/pull/131549), [@carlory](https://github.com/carlory)) [SIG API Machinery, Apps, Auth, CLI, Etcd, Storage and Testing] +- Promoted the `APIServerTracing` feature gate to GA. The `--tracing-config-file` flag now accepts `TracingConfiguration` in version `apiserver.config.k8s.io/v1` (with no changes from `apiserver.config.k8s.io/v1beta1`). ([kubernetes/kubernetes#132340](https://github.com/kubernetes/kubernetes/pull/132340), [@dashpole](https://github.com/dashpole)) [SIG API Machinery and Testing] +- Removed deprecated gogo protocol definitions from `k8s.io/kubelet/pkg/apis/pluginregistration` in favor of `google.golang.org/protobuf`. ([kubernetes/kubernetes#132773](https://github.com/kubernetes/kubernetes/pull/132773), [@saschagrunert](https://github.com/saschagrunert)) [SIG Node] +- The Kubelet can now monitor the health of devices allocated via Dynamic Resource Allocation (DRA) and report it in the `pod.status.containerStatuses.allocatedResourcesStatus` field. This requires the DRA plugin to implement the new v1alpha1 `NodeHealth` gRPC service. This feature is controlled by the `ResourceHealthStatus` feature gate. ([kubernetes/kubernetes#130606](https://github.com/kubernetes/kubernetes/pull/130606), [@Jpsassine](https://github.com/Jpsassine)) [SIG Apps, Architecture, Auth, CLI, Cloud Provider, Cluster Lifecycle, Etcd, Network, Node, Release, Scheduling, Storage and Testing] +- The KubeletServiceAccountTokenForCredentialProviders feature is now beta and enabled by default. ([kubernetes/kubernetes#133017](https://github.com/kubernetes/kubernetes/pull/133017), [@aramase](https://github.com/aramase)) [SIG Auth and Node] +- The conditionType is "oneof" approved/denied check of CertificateSigningRequest's `.status.conditions` field has been migrated to declarative validation. + If the `DeclarativeValidation` feature gate is enabled, mismatches with existing validation are reported via metrics. + If the `DeclarativeValidationTakeover` feature gate is enabled, declarative validation is the primary source of errors for migrated fields. ([kubernetes/kubernetes#133013](https://github.com/kubernetes/kubernetes/pull/133013), [@aaron-prindle](https://github.com/aaron-prindle)) [SIG API Machinery and Auth] +- The fallback behavior of the Downward API's `resourceFieldRef` field has been updated to account for pod-level resources: if container-level limits are not set, pod-level limits are now used before falling back to node allocatable resources. ([kubernetes/kubernetes#132605](https://github.com/kubernetes/kubernetes/pull/132605), [@toVersus](https://github.com/toVersus)) [SIG Node, Scheduling and Testing] +- The kubelet's image pull credential tracking now supports service account-based verification. When an image is pulled using service account credentials via external credential providers, subsequent pods using the same service account (UID, name, and namespace) can access the cached image without re-authentication for the lifetime of that service account. ([kubernetes/kubernetes#132771](https://github.com/kubernetes/kubernetes/pull/132771), [@aramase](https://github.com/aramase)) [SIG Auth, Node and Testing] +- Added `tokenAttributes.cacheType` field to v1 credential provider config. This field is required to be set to either ServiceAccount or Token when configuring a provider that uses service account to fetch registry credentials. ([kubernetes/kubernetes#132617](https://github.com/kubernetes/kubernetes/pull/132617), [@aramase](https://github.com/aramase)) [SIG Auth, Node and Testing] +- JWT authenticators specified via the `AuthenticationConfiguration.jwt` array can now optionally specify either the `controlplane` or `cluster` egress selector by setting the `issuer.egressSelectorType` field. When unset, the prior behavior of using no egress selector is retained. The StructuredAuthenticationConfigurationEgressSelector beta feature (default on) must be enabled to use this functionality. ([kubernetes/kubernetes#132768](https://github.com/kubernetes/kubernetes/pull/132768), [@enj](https://github.com/enj)) [SIG API Machinery, Auth and Testing] +- Promoted the `KubeletTracing` feature gate to GA. ([kubernetes/kubernetes#132341](https://github.com/kubernetes/kubernetes/pull/132341), [@dashpole](https://github.com/dashpole)) [SIG Instrumentation and Node] +- Replaces boolPtrFn helper functions with the "k8s.io/utils/ptr" implementation. ([kubernetes/kubernetes#132907](https://github.com/kubernetes/kubernetes/pull/132907), [@PatrickLaabs](https://github.com/PatrickLaabs)) [SIG Architecture] +- Simplied validation error message for invalid fields by removing redundant field name. ([kubernetes/kubernetes#132513](https://github.com/kubernetes/kubernetes/pull/132513), [@xiaoweim](https://github.com/xiaoweim)) [SIG API Machinery, Apps, Auth, Node and Scheduling] +- The `AuthorizeWithSelectors` and `AuthorizeNodeWithSelectors` feature gates are promoted to stable and locked on. ([kubernetes/kubernetes#132656](https://github.com/kubernetes/kubernetes/pull/132656), [@liggitt](https://github.com/liggitt)) [SIG API Machinery, Auth and Testing] +- DRA: the v1alpha4 kubelet gRPC API (added in 1.31, superseded in 1.32) is no longer supported. DRA drivers using the helper package from Kubernetes >= 1.32 use the v1beta1 API and continue to be supported. ([kubernetes/kubernetes#132574](https://github.com/kubernetes/kubernetes/pull/132574), [@pohly](https://github.com/pohly)) [SIG Node] +- Deprecate StreamingConnectionIdleTimeout field of the kubelet config. ([kubernetes/kubernetes#131992](https://github.com/kubernetes/kubernetes/pull/131992), [@lalitc375](https://github.com/lalitc375)) [SIG Node] +- Removed deprecated gogo protocol definitions from `k8s.io/cri-api` in favor of `google.golang.org/protobuf`. ([kubernetes/kubernetes#128653](https://github.com/kubernetes/kubernetes/pull/128653), [@saschagrunert](https://github.com/saschagrunert)) [SIG API Machinery, Auth, Instrumentation, Node and Testing] +- Replaced deprecated package 'k8s.io/utils/pointer' with 'k8s.io/utils/ptr' for the apiextensions-apiserver apiextensions. ([kubernetes/kubernetes#132723](https://github.com/kubernetes/kubernetes/pull/132723), [@PatrickLaabs](https://github.com/PatrickLaabs)) [SIG API Machinery] +- Replaced deprecated package 'k8s.io/utils/pointer' with 'k8s.io/utils/ptr' for the component-base. ([kubernetes/kubernetes#132754](https://github.com/kubernetes/kubernetes/pull/132754), [@PatrickLaabs](https://github.com/PatrickLaabs)) [SIG API Machinery, Architecture, Instrumentation and Scheduling] +- Replaced deprecated package 'k8s.io/utils/pointer' with 'k8s.io/utils/ptr' for the kube-aggregator apiregistration. ([kubernetes/kubernetes#132701](https://github.com/kubernetes/kubernetes/pull/132701), [@PatrickLaabs](https://github.com/PatrickLaabs)) [SIG API Machinery] +- Replaces Boolean-pointer-helper functions with the "k8s.io/utils/ptr" implementations. ([kubernetes/kubernetes#132794](https://github.com/kubernetes/kubernetes/pull/132794), [@PatrickLaabs](https://github.com/PatrickLaabs)) [SIG API Machinery, Auth, CLI, Node and Testing] +- Replaces deprecated package 'k8s.io/utils/pointer' with 'k8s.io/utils/ptr' for the apiserver (1/2). ([kubernetes/kubernetes#132751](https://github.com/kubernetes/kubernetes/pull/132751), [@PatrickLaabs](https://github.com/PatrickLaabs)) [SIG API Machinery and Auth] +- Simplied validation error message for required fields by removing redundant messages. ([kubernetes/kubernetes#132472](https://github.com/kubernetes/kubernetes/pull/132472), [@xiaoweim](https://github.com/xiaoweim)) [SIG API Machinery, Apps, Architecture, Auth, Cloud Provider, Network, Node and Storage] +- Add a `runtime.ApplyConfiguration` interface that is implemented by all generated applyconfigs ([kubernetes/kubernetes#132194](https://github.com/kubernetes/kubernetes/pull/132194), [@alvaroaleman](https://github.com/alvaroaleman)) [SIG API Machinery and Instrumentation] +- Added omitempty and opt tag to the API v1beta2 AdminAccess type in the DeviceRequestAllocationResult struct. ([kubernetes/kubernetes#132338](https://github.com/kubernetes/kubernetes/pull/132338), [@PatrickLaabs](https://github.com/PatrickLaabs)) [SIG Auth] +- Introduces OpenAPI format support for `k8s-short-name` and `k8s-long-name`. ([kubernetes/kubernetes#132504](https://github.com/kubernetes/kubernetes/pull/132504), [@jpbetz](https://github.com/jpbetz)) [SIG API Machinery, Architecture, Auth, CLI, Cloud Provider, Cluster Lifecycle, Instrumentation, Network, Node, Scheduling and Storage] +- Promoted Job Pod Replacement Policy to general availability. The `JobPodReplacementPolicy` feature gate is now locked to true, and will be removed in a future release of Kubernetes. ([kubernetes/kubernetes#132173](https://github.com/kubernetes/kubernetes/pull/132173), [@dejanzele](https://github.com/dejanzele)) [SIG Apps and Testing] +- This PR corrects that documentation, making it clear to users that podSelector is optional and describes its default behavior. ([kubernetes/kubernetes#131354](https://github.com/kubernetes/kubernetes/pull/131354), [@tomoish](https://github.com/tomoish)) [SIG Network] +- #### Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: + + ([kubernetes/kubernetes#131996](https://github.com/kubernetes/kubernetes/pull/131996), [@ritazh](https://github.com/ritazh)) [SIG Node and Testing] +- DRA API: resource.k8s.io/v1alpha3 now only contains DeviceTaintRule. All other types got removed because they became obsolete when introducing the v1beta1 API in 1.32. + before updating a cluster where resourceclaims, resourceclaimtemplates, deviceclasses, or resourceslices might have been stored using Kubernetes < 1.32, delete all of those resources before updating and recreate them as needed while running Kubernetes >= 1.32. ([kubernetes/kubernetes#132000](https://github.com/kubernetes/kubernetes/pull/132000), [@pohly](https://github.com/pohly)) [SIG Etcd, Node, Scheduling and Testing] +- Extends the nodeports scheduling plugin to consider hostPorts used by restartable init containers. ([kubernetes/kubernetes#132040](https://github.com/kubernetes/kubernetes/pull/132040), [@avrittrohwer](https://github.com/avrittrohwer)) [SIG Scheduling and Testing] +- Kube-apiserver: Caching of authorization webhook decisions for authorized and unauthorized requests can now be disabled in the `--authorization-config` file by setting the new fields `cacheAuthorizedRequests` or `cacheUnauthorizedRequests` to `false` explicitly. See https://kubernetes.io/docs/reference/access-authn-authz/authorization/#using-configuration-file-for-authorization for more details. ([kubernetes/kubernetes#129237](https://github.com/kubernetes/kubernetes/pull/129237), [@rfranzke](https://github.com/rfranzke)) [SIG API Machinery and Auth] +- Kube-apiserver: Promoted the `StructuredAuthenticationConfiguration` feature gate to GA. ([kubernetes/kubernetes#131916](https://github.com/kubernetes/kubernetes/pull/131916), [@aramase](https://github.com/aramase)) [SIG API Machinery, Auth and Testing] +- Kube-apiserver: the AuthenticationConfiguration type accepted in `--authentication-config` files has been promoted to `apiserver.config.k8s.io/v1`. ([kubernetes/kubernetes#131752](https://github.com/kubernetes/kubernetes/pull/131752), [@aramase](https://github.com/aramase)) [SIG API Machinery, Auth and Testing] +- Kube-log-runner: rotating log output into a new file when reaching a certain file size can be requested via the new `-log-file-size` parameter. `-log-file-age` enables automatical removal of old output files. Periodic flushing can be requested through ` -flush-interval`. ([kubernetes/kubernetes#127667](https://github.com/kubernetes/kubernetes/pull/127667), [@zylxjtu](https://github.com/zylxjtu)) [SIG API Machinery, Apps, Architecture, Auth, Autoscaling, CLI, Cloud Provider, Cluster Lifecycle, Etcd, Instrumentation, Network, Node, Release, Scheduling, Storage, Testing and Windows] +- Kubectl: graduated `kuberc` support to beta. A `kuberc` configuration file provides a mechanism for customizing kubectl behavior (separate from kubeconfig, which configured cluster access across different clients). ([kubernetes/kubernetes#131818](https://github.com/kubernetes/kubernetes/pull/131818), [@soltysh](https://github.com/soltysh)) [SIG CLI and Testing] +- Promote the RelaxedEnvironmentVariableValidation feature gate to GA and lock it in the default enabled state. ([kubernetes/kubernetes#132054](https://github.com/kubernetes/kubernetes/pull/132054), [@HirazawaUi](https://github.com/HirazawaUi)) [SIG Apps, Architecture, Node and Testing] +- Remove inaccurate statement about requiring ports from pod spec hostNetwork field ([kubernetes/kubernetes#130994](https://github.com/kubernetes/kubernetes/pull/130994), [@BenTheElder](https://github.com/BenTheElder)) [SIG Network and Node] +- TBD ([kubernetes/kubernetes#131318](https://github.com/kubernetes/kubernetes/pull/131318), [@aojea](https://github.com/aojea)) [SIG API Machinery, Apps, Architecture, Auth, Etcd, Network and Testing] +- The validation of `replicas` field in the ReplicationController `/scale` subresource has been migrated to declarative validation. + If the `DeclarativeValidation` feature gate is enabled, mismatches with existing validation are reported via metrics. + If the `DeclarativeValidationTakeover` feature gate is enabled, declarative validation is the primary source of errors for migrated fields. ([kubernetes/kubernetes#131664](https://github.com/kubernetes/kubernetes/pull/131664), [@jpbetz](https://github.com/jpbetz)) [SIG API Machinery and Apps] +- The validation-gen code generator generates validation code that supports validation ratcheting. ([kubernetes/kubernetes#132236](https://github.com/kubernetes/kubernetes/pull/132236), [@yongruilin](https://github.com/yongruilin)) [SIG API Machinery, Apps, Auth and Node] +- Update etcd version to v3.6.0 ([kubernetes/kubernetes#131501](https://github.com/kubernetes/kubernetes/pull/131501), [@joshjms](https://github.com/joshjms)) [SIG API Machinery, Cloud Provider, Cluster Lifecycle, Etcd and Testing] +- When the IsDNS1123SubdomainWithUnderscore function returns an error, it will return the correct regex information dns1123SubdomainFmtWithUnderscore. ([kubernetes/kubernetes#132034](https://github.com/kubernetes/kubernetes/pull/132034), [@ChosenFoam](https://github.com/ChosenFoam)) [SIG Network] +- Zero-value `metadata.creationTimestamp` values are now omitted and no longer serialize an explicit `null` in JSON, YAML, and CBOR output ([kubernetes/kubernetes#130989](https://github.com/kubernetes/kubernetes/pull/130989), [@liggitt](https://github.com/liggitt)) [SIG API Machinery, Apps, Architecture, Auth, CLI, Cloud Provider, Cluster Lifecycle, Etcd, Instrumentation, Network, Node, Scheduling, Storage and Testing] + # v33.0.0+snapshot Kubernetes API Version: v1.33.1 diff --git a/README.md b/README.md index 99e2b38e0..09f7790a5 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ supported versions of Kubernetes clusters. - [client 31.y.z](https://pypi.org/project/kubernetes/31.0.0/): Kubernetes 1.30 or below (+-), Kubernetes 1.31 (✓), Kubernetes 1.32 or above (+-) - [client 32.y.z](https://pypi.org/project/kubernetes/32.0.1/): Kubernetes 1.31 or below (+-), Kubernetes 1.32 (✓), Kubernetes 1.33 or above (+-) - [client 33.y.z](https://pypi.org/project/kubernetes/33.1.0/): Kubernetes 1.32 or below (+-), Kubernetes 1.33 (✓), Kubernetes 1.34 or above (+-) +- [client 34.y.z](https://pypi.org/project/kubernetes/34.1.0/): Kubernetes 1.33 or below (+-), Kubernetes 1.34 (✓), Kubernetes 1.35 or above (+-) > See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release. @@ -174,6 +175,7 @@ between client-python versions. | 32.1 | Kubernetes main repo, 1.32 branch | ✓ | | 33.1 Alpha/Beta | Kubernetes main repo, 1.33 branch | ✗ | | 33.1 | Kubernetes main repo, 1.33 branch | ✓ | +| 34.1 Alpha/Beta | Kubernetes main repo, 1.34 branch | ✓ | > See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release. diff --git a/doc/source/kubernetes.test.test_v1alpha3_counter.rst b/doc/source/kubernetes.client.api.resource_v1_api.rst similarity index 50% rename from doc/source/kubernetes.test.test_v1alpha3_counter.rst rename to doc/source/kubernetes.client.api.resource_v1_api.rst index 023ad43d6..7422edcd4 100644 --- a/doc/source/kubernetes.test.test_v1alpha3_counter.rst +++ b/doc/source/kubernetes.client.api.resource_v1_api.rst @@ -1,7 +1,7 @@ -kubernetes.test.test\_v1alpha3\_counter module +kubernetes.client.api.resource\_v1\_api module ============================================== -.. automodule:: kubernetes.test.test_v1alpha3_counter +.. automodule:: kubernetes.client.api.resource_v1_api :members: :undoc-members: :show-inheritance: diff --git a/doc/source/kubernetes.client.api.rst b/doc/source/kubernetes.client.api.rst index d7b2fb2fa..3e46d86ff 100644 --- a/doc/source/kubernetes.client.api.rst +++ b/doc/source/kubernetes.client.api.rst @@ -58,6 +58,7 @@ Submodules 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 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 000000000..f35763422 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..797132c16 --- /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: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.client.models.rst b/doc/source/kubernetes.client.models.rst index d28213a09..3d621f772 100644 --- a/doc/source/kubernetes.client.models.rst +++ b/doc/source/kubernetes.client.models.rst @@ -17,15 +17,19 @@ Submodules 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 @@ -46,6 +50,10 @@ Submodules 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 @@ -73,9 +81,12 @@ Submodules 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 @@ -84,6 +95,8 @@ Submodules 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 @@ -126,6 +139,25 @@ Submodules 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_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_toleration kubernetes.client.models.v1_downward_api_projection kubernetes.client.models.v1_downward_api_volume_file kubernetes.client.models.v1_downward_api_volume_source @@ -146,6 +178,7 @@ Submodules kubernetes.client.models.v1_ephemeral_volume_source kubernetes.client.models.v1_event_source kubernetes.client.models.v1_eviction + 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 @@ -153,6 +186,7 @@ Submodules 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 @@ -246,6 +280,7 @@ Submodules 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 @@ -278,6 +313,7 @@ Submodules 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 @@ -299,6 +335,7 @@ Submodules 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_condition kubernetes.client.models.v1_pod_disruption_budget kubernetes.client.models.v1_pod_disruption_budget_list @@ -306,6 +343,7 @@ Submodules 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 @@ -354,16 +392,26 @@ Submodules 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 + 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 @@ -476,6 +524,8 @@ Submodules 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_mount @@ -508,6 +558,10 @@ Submodules kubernetes.client.models.v1alpha1_named_rule_with_operations kubernetes.client.models.v1alpha1_param_kind kubernetes.client.models.v1alpha1_param_ref + kubernetes.client.models.v1alpha1_pod_certificate_request + kubernetes.client.models.v1alpha1_pod_certificate_request_list + kubernetes.client.models.v1alpha1_pod_certificate_request_spec + kubernetes.client.models.v1alpha1_pod_certificate_request_status kubernetes.client.models.v1alpha1_server_storage_version kubernetes.client.models.v1alpha1_storage_version kubernetes.client.models.v1alpha1_storage_version_condition @@ -523,52 +577,20 @@ Submodules kubernetes.client.models.v1alpha2_lease_candidate kubernetes.client.models.v1alpha2_lease_candidate_list kubernetes.client.models.v1alpha2_lease_candidate_spec - kubernetes.client.models.v1alpha3_allocated_device_status - kubernetes.client.models.v1alpha3_allocation_result - kubernetes.client.models.v1alpha3_basic_device kubernetes.client.models.v1alpha3_cel_device_selector - kubernetes.client.models.v1alpha3_counter - kubernetes.client.models.v1alpha3_counter_set - kubernetes.client.models.v1alpha3_device - kubernetes.client.models.v1alpha3_device_allocation_configuration - kubernetes.client.models.v1alpha3_device_allocation_result - kubernetes.client.models.v1alpha3_device_attribute - kubernetes.client.models.v1alpha3_device_claim - kubernetes.client.models.v1alpha3_device_claim_configuration - kubernetes.client.models.v1alpha3_device_class - kubernetes.client.models.v1alpha3_device_class_configuration - kubernetes.client.models.v1alpha3_device_class_list - kubernetes.client.models.v1alpha3_device_class_spec - kubernetes.client.models.v1alpha3_device_constraint - kubernetes.client.models.v1alpha3_device_counter_consumption - kubernetes.client.models.v1alpha3_device_request - kubernetes.client.models.v1alpha3_device_request_allocation_result kubernetes.client.models.v1alpha3_device_selector - kubernetes.client.models.v1alpha3_device_sub_request 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_selector - kubernetes.client.models.v1alpha3_device_toleration - kubernetes.client.models.v1alpha3_network_device_data - kubernetes.client.models.v1alpha3_opaque_device_configuration - kubernetes.client.models.v1alpha3_resource_claim - kubernetes.client.models.v1alpha3_resource_claim_consumer_reference - kubernetes.client.models.v1alpha3_resource_claim_list - kubernetes.client.models.v1alpha3_resource_claim_spec - kubernetes.client.models.v1alpha3_resource_claim_status - kubernetes.client.models.v1alpha3_resource_claim_template - kubernetes.client.models.v1alpha3_resource_claim_template_list - kubernetes.client.models.v1alpha3_resource_claim_template_spec - kubernetes.client.models.v1alpha3_resource_pool - kubernetes.client.models.v1alpha3_resource_slice - kubernetes.client.models.v1alpha3_resource_slice_list - kubernetes.client.models.v1alpha3_resource_slice_spec kubernetes.client.models.v1beta1_allocated_device_status kubernetes.client.models.v1beta1_allocation_result - kubernetes.client.models.v1beta1_audit_annotation + 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 @@ -594,15 +616,22 @@ Submodules kubernetes.client.models.v1beta1_device_sub_request kubernetes.client.models.v1beta1_device_taint kubernetes.client.models.v1beta1_device_toleration - kubernetes.client.models.v1beta1_expression_warning kubernetes.client.models.v1beta1_ip_address kubernetes.client.models.v1beta1_ip_address_list kubernetes.client.models.v1beta1_ip_address_spec + 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_opaque_device_configuration @@ -625,20 +654,14 @@ Submodules kubernetes.client.models.v1beta1_service_cidr_list kubernetes.client.models.v1beta1_service_cidr_spec kubernetes.client.models.v1beta1_service_cidr_status - kubernetes.client.models.v1beta1_type_checking - kubernetes.client.models.v1beta1_validating_admission_policy - kubernetes.client.models.v1beta1_validating_admission_policy_binding - kubernetes.client.models.v1beta1_validating_admission_policy_binding_list - kubernetes.client.models.v1beta1_validating_admission_policy_binding_spec - kubernetes.client.models.v1beta1_validating_admission_policy_list - kubernetes.client.models.v1beta1_validating_admission_policy_spec - kubernetes.client.models.v1beta1_validating_admission_policy_status - kubernetes.client.models.v1beta1_validation kubernetes.client.models.v1beta1_variable kubernetes.client.models.v1beta1_volume_attributes_class kubernetes.client.models.v1beta1_volume_attributes_class_list 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 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 000000000..bbd3e3c7c --- /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: + :undoc-members: + :show-inheritance: 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 000000000..e02b22d39 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..38c4d21c8 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..43834d1db --- /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: + :undoc-members: + :show-inheritance: 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 000000000..91a315c0b --- /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: + :undoc-members: + :show-inheritance: 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 000000000..0ded989a0 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..612abfd14 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..92a209914 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..155ec5042 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..80c791fdd --- /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: + :undoc-members: + :show-inheritance: 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 000000000..4f0ecf9e4 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..c76aeccb3 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..cbe4acc7f --- /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: + :undoc-members: + :show-inheritance: 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 000000000..c1abe801d --- /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: + :undoc-members: + :show-inheritance: 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 000000000..7d4830bcb --- /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: + :undoc-members: + :show-inheritance: 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 000000000..e81024046 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..634b95ca0 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..0ae7460cd --- /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: + :undoc-members: + :show-inheritance: 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 000000000..da918de57 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..7819b5348 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..a351c9f15 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..f83370b57 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..800d8d2d4 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..c20b75728 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..71e53f52e --- /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: + :undoc-members: + :show-inheritance: 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 000000000..37ef20053 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..c807c77be --- /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: + :undoc-members: + :show-inheritance: 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 000000000..9b2ea6de6 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..4faafa0cf --- /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: + :undoc-members: + :show-inheritance: 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 000000000..bce90ed08 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..9cc0d9740 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..9e1a22e1b --- /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: + :undoc-members: + :show-inheritance: 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 000000000..31b5bec7e --- /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: + :undoc-members: + :show-inheritance: 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 000000000..a482ab5f1 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..34afaba58 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..1fa40231e --- /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: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1_resource_claim.rst b/doc/source/kubernetes.client.models.v1_resource_claim.rst deleted file mode 100644 index dacf67479..000000000 --- a/doc/source/kubernetes.client.models.v1_resource_claim.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1\_resource\_claim module -=================================================== - -.. automodule:: kubernetes.client.models.v1_resource_claim - :members: - :undoc-members: - :show-inheritance: 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 000000000..8dddd7fbc --- /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: + :undoc-members: + :show-inheritance: 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 000000000..8d95651a4 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..063a31fab --- /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: + :undoc-members: + :show-inheritance: 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 000000000..a158cd04b --- /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: + :undoc-members: + :show-inheritance: 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 000000000..bdddbdb9f --- /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: + :undoc-members: + :show-inheritance: 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 000000000..6c65ced75 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..afeb30c22 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..447c97797 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..cc8721939 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..18d437e5a --- /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: + :undoc-members: + :show-inheritance: 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 000000000..42087257b --- /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: + :undoc-members: + :show-inheritance: 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 000000000..3e92f221e --- /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: + :undoc-members: + :show-inheritance: 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 000000000..d7eed7386 --- /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: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha1_pod_certificate_request.rst b/doc/source/kubernetes.client.models.v1alpha1_pod_certificate_request.rst new file mode 100644 index 000000000..26dded583 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_pod_certificate_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_pod\_certificate\_request module +=================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_pod_certificate_request + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha1_pod_certificate_request_list.rst b/doc/source/kubernetes.client.models.v1alpha1_pod_certificate_request_list.rst new file mode 100644 index 000000000..0a34ed21c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_pod_certificate_request_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_pod\_certificate\_request\_list module +========================================================================= + +.. automodule:: kubernetes.client.models.v1alpha1_pod_certificate_request_list + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha1_pod_certificate_request_spec.rst b/doc/source/kubernetes.client.models.v1alpha1_pod_certificate_request_spec.rst new file mode 100644 index 000000000..82ccebb71 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_pod_certificate_request_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_pod\_certificate\_request\_spec module +========================================================================= + +.. automodule:: kubernetes.client.models.v1alpha1_pod_certificate_request_spec + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha1_pod_certificate_request_status.rst b/doc/source/kubernetes.client.models.v1alpha1_pod_certificate_request_status.rst new file mode 100644 index 000000000..697cd9d77 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_pod_certificate_request_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_pod\_certificate\_request\_status module +=========================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_pod_certificate_request_status + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_allocated_device_status.rst b/doc/source/kubernetes.client.models.v1alpha3_allocated_device_status.rst deleted file mode 100644 index ae9500b6e..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_allocated_device_status.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_allocated\_device\_status module -=================================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_allocated_device_status - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_allocation_result.rst b/doc/source/kubernetes.client.models.v1alpha3_allocation_result.rst deleted file mode 100644 index 8d4a017af..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_allocation_result.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_allocation\_result module -============================================================ - -.. automodule:: kubernetes.client.models.v1alpha3_allocation_result - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_basic_device.rst b/doc/source/kubernetes.client.models.v1alpha3_basic_device.rst deleted file mode 100644 index 5a5bcac40..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_basic_device.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_basic\_device module -======================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_basic_device - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_counter.rst b/doc/source/kubernetes.client.models.v1alpha3_counter.rst deleted file mode 100644 index 67c077e3e..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_counter.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_counter module -================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_counter - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_counter_set.rst b/doc/source/kubernetes.client.models.v1alpha3_counter_set.rst deleted file mode 100644 index 010da15b1..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_counter_set.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_counter\_set module -====================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_counter_set - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device.rst b/doc/source/kubernetes.client.models.v1alpha3_device.rst deleted file mode 100644 index 1a57fe7f2..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device module -================================================ - -.. automodule:: kubernetes.client.models.v1alpha3_device - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_allocation_configuration.rst b/doc/source/kubernetes.client.models.v1alpha3_device_allocation_configuration.rst deleted file mode 100644 index 106bd58b7..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_allocation_configuration.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_allocation\_configuration module -=========================================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_device_allocation_configuration - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_allocation_result.rst b/doc/source/kubernetes.client.models.v1alpha3_device_allocation_result.rst deleted file mode 100644 index 93ca3ab37..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_allocation_result.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_allocation\_result module -==================================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_device_allocation_result - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_attribute.rst b/doc/source/kubernetes.client.models.v1alpha3_device_attribute.rst deleted file mode 100644 index 48f14ac53..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_attribute.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_attribute module -=========================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_device_attribute - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_claim.rst b/doc/source/kubernetes.client.models.v1alpha3_device_claim.rst deleted file mode 100644 index fecbe1152..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_claim.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_claim module -======================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_device_claim - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_claim_configuration.rst b/doc/source/kubernetes.client.models.v1alpha3_device_claim_configuration.rst deleted file mode 100644 index e741457c7..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_claim_configuration.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_claim\_configuration module -====================================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_device_claim_configuration - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_class.rst b/doc/source/kubernetes.client.models.v1alpha3_device_class.rst deleted file mode 100644 index 9f02c00e2..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_class.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_class module -======================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_device_class - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_class_configuration.rst b/doc/source/kubernetes.client.models.v1alpha3_device_class_configuration.rst deleted file mode 100644 index eefa46da6..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_class_configuration.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_class\_configuration module -====================================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_device_class_configuration - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_class_list.rst b/doc/source/kubernetes.client.models.v1alpha3_device_class_list.rst deleted file mode 100644 index 284647e57..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_class_list.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_class\_list module -============================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_device_class_list - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_class_spec.rst b/doc/source/kubernetes.client.models.v1alpha3_device_class_spec.rst deleted file mode 100644 index d0643cefb..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_class_spec.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_class\_spec module -============================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_device_class_spec - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_constraint.rst b/doc/source/kubernetes.client.models.v1alpha3_device_constraint.rst deleted file mode 100644 index 080661872..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_constraint.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_constraint module -============================================================ - -.. automodule:: kubernetes.client.models.v1alpha3_device_constraint - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_counter_consumption.rst b/doc/source/kubernetes.client.models.v1alpha3_device_counter_consumption.rst deleted file mode 100644 index 3c1954170..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_counter_consumption.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_counter\_consumption module -====================================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_device_counter_consumption - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_request.rst b/doc/source/kubernetes.client.models.v1alpha3_device_request.rst deleted file mode 100644 index 3a3f08b2b..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_request.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_request module -========================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_device_request - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_request_allocation_result.rst b/doc/source/kubernetes.client.models.v1alpha3_device_request_allocation_result.rst deleted file mode 100644 index b295a9011..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_request_allocation_result.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_request\_allocation\_result module -============================================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_device_request_allocation_result - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_sub_request.rst b/doc/source/kubernetes.client.models.v1alpha3_device_sub_request.rst deleted file mode 100644 index 3dbab8c82..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_sub_request.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_sub\_request module -============================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_device_sub_request - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_toleration.rst b/doc/source/kubernetes.client.models.v1alpha3_device_toleration.rst deleted file mode 100644 index 09200828c..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_device_toleration.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_device\_toleration module -============================================================ - -.. automodule:: kubernetes.client.models.v1alpha3_device_toleration - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_network_device_data.rst b/doc/source/kubernetes.client.models.v1alpha3_network_device_data.rst deleted file mode 100644 index 7b8d33970..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_network_device_data.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_network\_device\_data module -=============================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_network_device_data - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_opaque_device_configuration.rst b/doc/source/kubernetes.client.models.v1alpha3_opaque_device_configuration.rst deleted file mode 100644 index a1e54b2e2..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_opaque_device_configuration.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_opaque\_device\_configuration module -======================================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_opaque_device_configuration - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_claim.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_claim.rst deleted file mode 100644 index bc0087ecf..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_resource_claim.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_resource\_claim module -========================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_resource_claim - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_consumer_reference.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_claim_consumer_reference.rst deleted file mode 100644 index fb4da9f62..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_consumer_reference.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_resource\_claim\_consumer\_reference module -============================================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_resource_claim_consumer_reference - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_list.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_claim_list.rst deleted file mode 100644 index 6d65b076c..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_list.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_resource\_claim\_list module -=============================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_resource_claim_list - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_spec.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_claim_spec.rst deleted file mode 100644 index 364d4a2c1..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_spec.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_resource\_claim\_spec module -=============================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_resource_claim_spec - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_status.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_claim_status.rst deleted file mode 100644 index 28c2fff91..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_status.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_resource\_claim\_status module -================================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_resource_claim_status - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_template.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_claim_template.rst deleted file mode 100644 index bacb01b2d..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_template.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_resource\_claim\_template module -=================================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_resource_claim_template - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_template_list.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_claim_template_list.rst deleted file mode 100644 index d8255018f..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_template_list.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_resource\_claim\_template\_list module -========================================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_resource_claim_template_list - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_template_spec.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_claim_template_spec.rst deleted file mode 100644 index fa93b0a98..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_resource_claim_template_spec.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_resource\_claim\_template\_spec module -========================================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_resource_claim_template_spec - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_pool.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_pool.rst deleted file mode 100644 index 5d6f5c699..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_resource_pool.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_resource\_pool module -======================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_resource_pool - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_slice.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_slice.rst deleted file mode 100644 index 4c4e88325..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_resource_slice.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_resource\_slice module -========================================================= - -.. automodule:: kubernetes.client.models.v1alpha3_resource_slice - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_slice_list.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_slice_list.rst deleted file mode 100644 index b062c8c27..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_resource_slice_list.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_resource\_slice\_list module -=============================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_resource_slice_list - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_slice_spec.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_slice_spec.rst deleted file mode 100644 index 523519772..000000000 --- a/doc/source/kubernetes.client.models.v1alpha3_resource_slice_spec.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1alpha3\_resource\_slice\_spec module -=============================================================== - -.. automodule:: kubernetes.client.models.v1alpha3_resource_slice_spec - :members: - :undoc-members: - :show-inheritance: 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 000000000..30a8f0720 --- /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: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1beta1_audit_annotation.rst b/doc/source/kubernetes.client.models.v1beta1_audit_annotation.rst deleted file mode 100644 index b0a1cfdc8..000000000 --- a/doc/source/kubernetes.client.models.v1beta1_audit_annotation.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1beta1\_audit\_annotation module -========================================================== - -.. automodule:: kubernetes.client.models.v1beta1_audit_annotation - :members: - :undoc-members: - :show-inheritance: 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 000000000..65a551746 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..4977fb008 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..57b1446ee --- /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: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1beta1_expression_warning.rst b/doc/source/kubernetes.client.models.v1beta1_expression_warning.rst deleted file mode 100644 index dbb811f38..000000000 --- a/doc/source/kubernetes.client.models.v1beta1_expression_warning.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1beta1\_expression\_warning module -============================================================ - -.. automodule:: kubernetes.client.models.v1beta1_expression_warning - :members: - :undoc-members: - :show-inheritance: 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 000000000..fa5f2e426 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..2b676604d --- /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: + :undoc-members: + :show-inheritance: 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 000000000..e8c9a51b2 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..022bed134 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..76a88228b --- /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: + :undoc-members: + :show-inheritance: 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 000000000..95c7d00db --- /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: + :undoc-members: + :show-inheritance: 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 000000000..592808ae7 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..62fc33d8a --- /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: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1beta1_type_checking.rst b/doc/source/kubernetes.client.models.v1beta1_type_checking.rst deleted file mode 100644 index 6bd58cb59..000000000 --- a/doc/source/kubernetes.client.models.v1beta1_type_checking.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1beta1\_type\_checking module -======================================================= - -.. automodule:: kubernetes.client.models.v1beta1_type_checking - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy.rst b/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy.rst deleted file mode 100644 index c61a3d8bb..000000000 --- a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1beta1\_validating\_admission\_policy module -====================================================================== - -.. automodule:: kubernetes.client.models.v1beta1_validating_admission_policy - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_binding.rst b/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_binding.rst deleted file mode 100644 index d069f6fb7..000000000 --- a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_binding.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1beta1\_validating\_admission\_policy\_binding module -=============================================================================== - -.. automodule:: kubernetes.client.models.v1beta1_validating_admission_policy_binding - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_binding_list.rst b/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_binding_list.rst deleted file mode 100644 index b5d6fc52f..000000000 --- a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_binding_list.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1beta1\_validating\_admission\_policy\_binding\_list module -===================================================================================== - -.. automodule:: kubernetes.client.models.v1beta1_validating_admission_policy_binding_list - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_binding_spec.rst b/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_binding_spec.rst deleted file mode 100644 index 691312c97..000000000 --- a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_binding_spec.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1beta1\_validating\_admission\_policy\_binding\_spec module -===================================================================================== - -.. automodule:: kubernetes.client.models.v1beta1_validating_admission_policy_binding_spec - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_list.rst b/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_list.rst deleted file mode 100644 index 5da9e73db..000000000 --- a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_list.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1beta1\_validating\_admission\_policy\_list module -============================================================================ - -.. automodule:: kubernetes.client.models.v1beta1_validating_admission_policy_list - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_spec.rst b/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_spec.rst deleted file mode 100644 index 63cd367e7..000000000 --- a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_spec.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1beta1\_validating\_admission\_policy\_spec module -============================================================================ - -.. automodule:: kubernetes.client.models.v1beta1_validating_admission_policy_spec - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_status.rst b/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_status.rst deleted file mode 100644 index 66cec2fb3..000000000 --- a/doc/source/kubernetes.client.models.v1beta1_validating_admission_policy_status.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1beta1\_validating\_admission\_policy\_status module -============================================================================== - -.. automodule:: kubernetes.client.models.v1beta1_validating_admission_policy_status - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.client.models.v1beta1_validation.rst b/doc/source/kubernetes.client.models.v1beta1_validation.rst deleted file mode 100644 index 44f432340..000000000 --- a/doc/source/kubernetes.client.models.v1beta1_validation.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.client.models.v1beta1\_validation module -=================================================== - -.. automodule:: kubernetes.client.models.v1beta1_validation - :members: - :undoc-members: - :show-inheritance: 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 000000000..6e0867bd0 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..c9a9c49a5 --- /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: + :undoc-members: + :show-inheritance: 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 000000000..9ef95bf33 --- /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: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.rst b/doc/source/kubernetes.test.rst index 181b356ab..2ec3a14e5 100644 --- a/doc/source/kubernetes.test.rst +++ b/doc/source/kubernetes.test.rst @@ -47,6 +47,7 @@ Submodules kubernetes.test.test_core_v1_event kubernetes.test.test_core_v1_event_list kubernetes.test.test_core_v1_event_series + kubernetes.test.test_core_v1_resource_claim kubernetes.test.test_custom_objects_api kubernetes.test.test_discovery_api kubernetes.test.test_discovery_v1_api @@ -74,6 +75,8 @@ Submodules kubernetes.test.test_rbac_authorization_v1_api kubernetes.test.test_rbac_v1_subject kubernetes.test.test_resource_api + kubernetes.test.test_resource_v1_api + kubernetes.test.test_resource_v1_resource_claim kubernetes.test.test_resource_v1alpha3_api kubernetes.test.test_resource_v1beta1_api kubernetes.test.test_resource_v1beta2_api @@ -88,6 +91,8 @@ Submodules kubernetes.test.test_storagemigration_v1alpha1_api kubernetes.test.test_v1_affinity kubernetes.test.test_v1_aggregation_rule + kubernetes.test.test_v1_allocated_device_status + kubernetes.test.test_v1_allocation_result kubernetes.test.test_v1_api_group kubernetes.test.test_v1_api_group_list kubernetes.test.test_v1_api_resource @@ -108,6 +113,10 @@ Submodules kubernetes.test.test_v1_binding kubernetes.test.test_v1_bound_object_reference kubernetes.test.test_v1_capabilities + kubernetes.test.test_v1_capacity_request_policy + kubernetes.test.test_v1_capacity_request_policy_range + kubernetes.test.test_v1_capacity_requirements + kubernetes.test.test_v1_cel_device_selector kubernetes.test.test_v1_ceph_fs_persistent_volume_source kubernetes.test.test_v1_ceph_fs_volume_source kubernetes.test.test_v1_certificate_signing_request @@ -135,9 +144,12 @@ Submodules kubernetes.test.test_v1_config_map_projection kubernetes.test.test_v1_config_map_volume_source kubernetes.test.test_v1_container + kubernetes.test.test_v1_container_extended_resource_request kubernetes.test.test_v1_container_image kubernetes.test.test_v1_container_port kubernetes.test.test_v1_container_resize_policy + kubernetes.test.test_v1_container_restart_rule + kubernetes.test.test_v1_container_restart_rule_on_exit_codes kubernetes.test.test_v1_container_state kubernetes.test.test_v1_container_state_running kubernetes.test.test_v1_container_state_terminated @@ -146,6 +158,8 @@ Submodules kubernetes.test.test_v1_container_user kubernetes.test.test_v1_controller_revision kubernetes.test.test_v1_controller_revision_list + kubernetes.test.test_v1_counter + kubernetes.test.test_v1_counter_set kubernetes.test.test_v1_cron_job kubernetes.test.test_v1_cron_job_list kubernetes.test.test_v1_cron_job_spec @@ -188,6 +202,25 @@ Submodules kubernetes.test.test_v1_deployment_spec kubernetes.test.test_v1_deployment_status kubernetes.test.test_v1_deployment_strategy + kubernetes.test.test_v1_device + kubernetes.test.test_v1_device_allocation_configuration + kubernetes.test.test_v1_device_allocation_result + kubernetes.test.test_v1_device_attribute + kubernetes.test.test_v1_device_capacity + kubernetes.test.test_v1_device_claim + kubernetes.test.test_v1_device_claim_configuration + kubernetes.test.test_v1_device_class + kubernetes.test.test_v1_device_class_configuration + kubernetes.test.test_v1_device_class_list + kubernetes.test.test_v1_device_class_spec + kubernetes.test.test_v1_device_constraint + kubernetes.test.test_v1_device_counter_consumption + kubernetes.test.test_v1_device_request + kubernetes.test.test_v1_device_request_allocation_result + kubernetes.test.test_v1_device_selector + kubernetes.test.test_v1_device_sub_request + kubernetes.test.test_v1_device_taint + kubernetes.test.test_v1_device_toleration kubernetes.test.test_v1_downward_api_projection kubernetes.test.test_v1_downward_api_volume_file kubernetes.test.test_v1_downward_api_volume_source @@ -208,6 +241,7 @@ Submodules kubernetes.test.test_v1_ephemeral_volume_source kubernetes.test.test_v1_event_source kubernetes.test.test_v1_eviction + kubernetes.test.test_v1_exact_device_request kubernetes.test.test_v1_exec_action kubernetes.test.test_v1_exempt_priority_level_configuration kubernetes.test.test_v1_expression_warning @@ -215,6 +249,7 @@ Submodules kubernetes.test.test_v1_fc_volume_source kubernetes.test.test_v1_field_selector_attributes kubernetes.test.test_v1_field_selector_requirement + kubernetes.test.test_v1_file_key_selector kubernetes.test.test_v1_flex_persistent_volume_source kubernetes.test.test_v1_flex_volume_source kubernetes.test.test_v1_flocker_volume_source @@ -308,6 +343,7 @@ Submodules kubernetes.test.test_v1_namespace_list kubernetes.test.test_v1_namespace_spec kubernetes.test.test_v1_namespace_status + kubernetes.test.test_v1_network_device_data kubernetes.test.test_v1_network_policy kubernetes.test.test_v1_network_policy_egress_rule kubernetes.test.test_v1_network_policy_ingress_rule @@ -340,6 +376,7 @@ Submodules kubernetes.test.test_v1_object_field_selector kubernetes.test.test_v1_object_meta kubernetes.test.test_v1_object_reference + kubernetes.test.test_v1_opaque_device_configuration kubernetes.test.test_v1_overhead kubernetes.test.test_v1_owner_reference kubernetes.test.test_v1_param_kind @@ -361,6 +398,7 @@ Submodules kubernetes.test.test_v1_pod_affinity kubernetes.test.test_v1_pod_affinity_term kubernetes.test.test_v1_pod_anti_affinity + kubernetes.test.test_v1_pod_certificate_projection kubernetes.test.test_v1_pod_condition kubernetes.test.test_v1_pod_disruption_budget kubernetes.test.test_v1_pod_disruption_budget_list @@ -368,6 +406,7 @@ Submodules kubernetes.test.test_v1_pod_disruption_budget_status kubernetes.test.test_v1_pod_dns_config kubernetes.test.test_v1_pod_dns_config_option + kubernetes.test.test_v1_pod_extended_resource_claim_status kubernetes.test.test_v1_pod_failure_policy kubernetes.test.test_v1_pod_failure_policy_on_exit_codes_requirement kubernetes.test.test_v1_pod_failure_policy_on_pod_conditions_pattern @@ -416,16 +455,26 @@ Submodules kubernetes.test.test_v1_replication_controller_spec kubernetes.test.test_v1_replication_controller_status kubernetes.test.test_v1_resource_attributes - kubernetes.test.test_v1_resource_claim + kubernetes.test.test_v1_resource_claim_consumer_reference + kubernetes.test.test_v1_resource_claim_list + kubernetes.test.test_v1_resource_claim_spec + kubernetes.test.test_v1_resource_claim_status + kubernetes.test.test_v1_resource_claim_template + kubernetes.test.test_v1_resource_claim_template_list + kubernetes.test.test_v1_resource_claim_template_spec kubernetes.test.test_v1_resource_field_selector kubernetes.test.test_v1_resource_health kubernetes.test.test_v1_resource_policy_rule + kubernetes.test.test_v1_resource_pool kubernetes.test.test_v1_resource_quota kubernetes.test.test_v1_resource_quota_list kubernetes.test.test_v1_resource_quota_spec kubernetes.test.test_v1_resource_quota_status kubernetes.test.test_v1_resource_requirements kubernetes.test.test_v1_resource_rule + kubernetes.test.test_v1_resource_slice + kubernetes.test.test_v1_resource_slice_list + kubernetes.test.test_v1_resource_slice_spec kubernetes.test.test_v1_resource_status kubernetes.test.test_v1_role kubernetes.test.test_v1_role_binding @@ -538,6 +587,8 @@ Submodules kubernetes.test.test_v1_volume_attachment_source kubernetes.test.test_v1_volume_attachment_spec kubernetes.test.test_v1_volume_attachment_status + kubernetes.test.test_v1_volume_attributes_class + kubernetes.test.test_v1_volume_attributes_class_list kubernetes.test.test_v1_volume_device kubernetes.test.test_v1_volume_error kubernetes.test.test_v1_volume_mount @@ -570,6 +621,10 @@ Submodules kubernetes.test.test_v1alpha1_named_rule_with_operations kubernetes.test.test_v1alpha1_param_kind kubernetes.test.test_v1alpha1_param_ref + kubernetes.test.test_v1alpha1_pod_certificate_request + kubernetes.test.test_v1alpha1_pod_certificate_request_list + kubernetes.test.test_v1alpha1_pod_certificate_request_spec + kubernetes.test.test_v1alpha1_pod_certificate_request_status kubernetes.test.test_v1alpha1_server_storage_version kubernetes.test.test_v1alpha1_storage_version kubernetes.test.test_v1alpha1_storage_version_condition @@ -585,52 +640,20 @@ Submodules kubernetes.test.test_v1alpha2_lease_candidate kubernetes.test.test_v1alpha2_lease_candidate_list kubernetes.test.test_v1alpha2_lease_candidate_spec - kubernetes.test.test_v1alpha3_allocated_device_status - kubernetes.test.test_v1alpha3_allocation_result - kubernetes.test.test_v1alpha3_basic_device kubernetes.test.test_v1alpha3_cel_device_selector - kubernetes.test.test_v1alpha3_counter - kubernetes.test.test_v1alpha3_counter_set - kubernetes.test.test_v1alpha3_device - kubernetes.test.test_v1alpha3_device_allocation_configuration - kubernetes.test.test_v1alpha3_device_allocation_result - kubernetes.test.test_v1alpha3_device_attribute - kubernetes.test.test_v1alpha3_device_claim - kubernetes.test.test_v1alpha3_device_claim_configuration - kubernetes.test.test_v1alpha3_device_class - kubernetes.test.test_v1alpha3_device_class_configuration - kubernetes.test.test_v1alpha3_device_class_list - kubernetes.test.test_v1alpha3_device_class_spec - kubernetes.test.test_v1alpha3_device_constraint - kubernetes.test.test_v1alpha3_device_counter_consumption - kubernetes.test.test_v1alpha3_device_request - kubernetes.test.test_v1alpha3_device_request_allocation_result kubernetes.test.test_v1alpha3_device_selector - kubernetes.test.test_v1alpha3_device_sub_request kubernetes.test.test_v1alpha3_device_taint kubernetes.test.test_v1alpha3_device_taint_rule kubernetes.test.test_v1alpha3_device_taint_rule_list kubernetes.test.test_v1alpha3_device_taint_rule_spec kubernetes.test.test_v1alpha3_device_taint_selector - kubernetes.test.test_v1alpha3_device_toleration - kubernetes.test.test_v1alpha3_network_device_data - kubernetes.test.test_v1alpha3_opaque_device_configuration - kubernetes.test.test_v1alpha3_resource_claim - kubernetes.test.test_v1alpha3_resource_claim_consumer_reference - kubernetes.test.test_v1alpha3_resource_claim_list - kubernetes.test.test_v1alpha3_resource_claim_spec - kubernetes.test.test_v1alpha3_resource_claim_status - kubernetes.test.test_v1alpha3_resource_claim_template - kubernetes.test.test_v1alpha3_resource_claim_template_list - kubernetes.test.test_v1alpha3_resource_claim_template_spec - kubernetes.test.test_v1alpha3_resource_pool - kubernetes.test.test_v1alpha3_resource_slice - kubernetes.test.test_v1alpha3_resource_slice_list - kubernetes.test.test_v1alpha3_resource_slice_spec kubernetes.test.test_v1beta1_allocated_device_status kubernetes.test.test_v1beta1_allocation_result - kubernetes.test.test_v1beta1_audit_annotation + kubernetes.test.test_v1beta1_apply_configuration kubernetes.test.test_v1beta1_basic_device + kubernetes.test.test_v1beta1_capacity_request_policy + kubernetes.test.test_v1beta1_capacity_request_policy_range + kubernetes.test.test_v1beta1_capacity_requirements kubernetes.test.test_v1beta1_cel_device_selector kubernetes.test.test_v1beta1_cluster_trust_bundle kubernetes.test.test_v1beta1_cluster_trust_bundle_list @@ -656,15 +679,22 @@ Submodules kubernetes.test.test_v1beta1_device_sub_request kubernetes.test.test_v1beta1_device_taint kubernetes.test.test_v1beta1_device_toleration - kubernetes.test.test_v1beta1_expression_warning kubernetes.test.test_v1beta1_ip_address kubernetes.test.test_v1beta1_ip_address_list kubernetes.test.test_v1beta1_ip_address_spec + kubernetes.test.test_v1beta1_json_patch kubernetes.test.test_v1beta1_lease_candidate kubernetes.test.test_v1beta1_lease_candidate_list kubernetes.test.test_v1beta1_lease_candidate_spec kubernetes.test.test_v1beta1_match_condition kubernetes.test.test_v1beta1_match_resources + kubernetes.test.test_v1beta1_mutating_admission_policy + kubernetes.test.test_v1beta1_mutating_admission_policy_binding + kubernetes.test.test_v1beta1_mutating_admission_policy_binding_list + kubernetes.test.test_v1beta1_mutating_admission_policy_binding_spec + kubernetes.test.test_v1beta1_mutating_admission_policy_list + kubernetes.test.test_v1beta1_mutating_admission_policy_spec + kubernetes.test.test_v1beta1_mutation kubernetes.test.test_v1beta1_named_rule_with_operations kubernetes.test.test_v1beta1_network_device_data kubernetes.test.test_v1beta1_opaque_device_configuration @@ -687,20 +717,14 @@ Submodules kubernetes.test.test_v1beta1_service_cidr_list kubernetes.test.test_v1beta1_service_cidr_spec kubernetes.test.test_v1beta1_service_cidr_status - kubernetes.test.test_v1beta1_type_checking - kubernetes.test.test_v1beta1_validating_admission_policy - kubernetes.test.test_v1beta1_validating_admission_policy_binding - kubernetes.test.test_v1beta1_validating_admission_policy_binding_list - kubernetes.test.test_v1beta1_validating_admission_policy_binding_spec - kubernetes.test.test_v1beta1_validating_admission_policy_list - kubernetes.test.test_v1beta1_validating_admission_policy_spec - kubernetes.test.test_v1beta1_validating_admission_policy_status - kubernetes.test.test_v1beta1_validation kubernetes.test.test_v1beta1_variable kubernetes.test.test_v1beta1_volume_attributes_class kubernetes.test.test_v1beta1_volume_attributes_class_list kubernetes.test.test_v1beta2_allocated_device_status kubernetes.test.test_v1beta2_allocation_result + kubernetes.test.test_v1beta2_capacity_request_policy + kubernetes.test.test_v1beta2_capacity_request_policy_range + kubernetes.test.test_v1beta2_capacity_requirements kubernetes.test.test_v1beta2_cel_device_selector kubernetes.test.test_v1beta2_counter kubernetes.test.test_v1beta2_counter_set diff --git a/doc/source/kubernetes.test.test_core_v1_resource_claim.rst b/doc/source/kubernetes.test.test_core_v1_resource_claim.rst new file mode 100644 index 000000000..203a6baf1 --- /dev/null +++ b/doc/source/kubernetes.test.test_core_v1_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_core\_v1\_resource\_claim module +====================================================== + +.. automodule:: kubernetes.test.test_core_v1_resource_claim + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_resource_v1_api.rst b/doc/source/kubernetes.test.test_resource_v1_api.rst new file mode 100644 index 000000000..3d7527ea6 --- /dev/null +++ b/doc/source/kubernetes.test.test_resource_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_resource\_v1\_api module +============================================== + +.. automodule:: kubernetes.test.test_resource_v1_api + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_resource_v1_resource_claim.rst b/doc/source/kubernetes.test.test_resource_v1_resource_claim.rst new file mode 100644 index 000000000..0c3912dd5 --- /dev/null +++ b/doc/source/kubernetes.test.test_resource_v1_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_resource\_v1\_resource\_claim module +========================================================== + +.. automodule:: kubernetes.test.test_resource_v1_resource_claim + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_allocated_device_status.rst b/doc/source/kubernetes.test.test_v1_allocated_device_status.rst new file mode 100644 index 000000000..c727899cb --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_allocated_device_status.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_allocated\_device\_status module +========================================================== + +.. automodule:: kubernetes.test.test_v1_allocated_device_status + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_allocation_result.rst b/doc/source/kubernetes.test.test_v1_allocation_result.rst new file mode 100644 index 000000000..a23daec06 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_allocation\_result module +=================================================== + +.. automodule:: kubernetes.test.test_v1_allocation_result + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_capacity_request_policy.rst b/doc/source/kubernetes.test.test_v1_capacity_request_policy.rst new file mode 100644 index 000000000..f0137990c --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_capacity_request_policy.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_capacity\_request\_policy module +========================================================== + +.. automodule:: kubernetes.test.test_v1_capacity_request_policy + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_capacity_request_policy_range.rst b/doc/source/kubernetes.test.test_v1_capacity_request_policy_range.rst new file mode 100644 index 000000000..b6a6b406d --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_capacity_request_policy_range.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_capacity\_request\_policy\_range module +================================================================= + +.. automodule:: kubernetes.test.test_v1_capacity_request_policy_range + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_capacity_requirements.rst b/doc/source/kubernetes.test.test_v1_capacity_requirements.rst new file mode 100644 index 000000000..3348abd0a --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_capacity_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_capacity\_requirements module +======================================================= + +.. automodule:: kubernetes.test.test_v1_capacity_requirements + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_cel_device_selector.rst b/doc/source/kubernetes.test.test_v1_cel_device_selector.rst new file mode 100644 index 000000000..67d77cb5c --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_cel_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_cel\_device\_selector module +====================================================== + +.. automodule:: kubernetes.test.test_v1_cel_device_selector + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_container_extended_resource_request.rst b/doc/source/kubernetes.test.test_v1_container_extended_resource_request.rst new file mode 100644 index 000000000..53bc392c9 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_container_extended_resource_request.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_container\_extended\_resource\_request module +======================================================================= + +.. automodule:: kubernetes.test.test_v1_container_extended_resource_request + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_container_restart_rule.rst b/doc/source/kubernetes.test.test_v1_container_restart_rule.rst new file mode 100644 index 000000000..79002f4f6 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_container_restart_rule.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_container\_restart\_rule module +========================================================= + +.. automodule:: kubernetes.test.test_v1_container_restart_rule + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_container_restart_rule_on_exit_codes.rst b/doc/source/kubernetes.test.test_v1_container_restart_rule_on_exit_codes.rst new file mode 100644 index 000000000..a0826ff10 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_container_restart_rule_on_exit_codes.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_container\_restart\_rule\_on\_exit\_codes module +========================================================================== + +.. automodule:: kubernetes.test.test_v1_container_restart_rule_on_exit_codes + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_counter.rst b/doc/source/kubernetes.test.test_v1_counter.rst new file mode 100644 index 000000000..b81dbf3af --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_counter.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_counter module +======================================== + +.. automodule:: kubernetes.test.test_v1_counter + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device.rst b/doc/source/kubernetes.test.test_v1_counter_set.rst similarity index 50% rename from doc/source/kubernetes.test.test_v1alpha3_device.rst rename to doc/source/kubernetes.test.test_v1_counter_set.rst index 4901d094b..df4f91496 100644 --- a/doc/source/kubernetes.test.test_v1alpha3_device.rst +++ b/doc/source/kubernetes.test.test_v1_counter_set.rst @@ -1,7 +1,7 @@ -kubernetes.test.test\_v1alpha3\_device module +kubernetes.test.test\_v1\_counter\_set module ============================================= -.. automodule:: kubernetes.test.test_v1alpha3_device +.. automodule:: kubernetes.test.test_v1_counter_set :members: :undoc-members: :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device.rst b/doc/source/kubernetes.test.test_v1_device.rst new file mode 100644 index 000000000..011f02976 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device module +======================================= + +.. automodule:: kubernetes.test.test_v1_device + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_allocation_configuration.rst b/doc/source/kubernetes.test.test_v1_device_allocation_configuration.rst new file mode 100644 index 000000000..9c2b03ced --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_allocation_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_allocation\_configuration module +================================================================== + +.. automodule:: kubernetes.test.test_v1_device_allocation_configuration + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_allocation_result.rst b/doc/source/kubernetes.test.test_v1_device_allocation_result.rst new file mode 100644 index 000000000..082c91bb4 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_allocation\_result module +=========================================================== + +.. automodule:: kubernetes.test.test_v1_device_allocation_result + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_attribute.rst b/doc/source/kubernetes.test.test_v1_device_attribute.rst new file mode 100644 index 000000000..c88b2421e --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_attribute.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_attribute module +================================================== + +.. automodule:: kubernetes.test.test_v1_device_attribute + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_capacity.rst b/doc/source/kubernetes.test.test_v1_device_capacity.rst new file mode 100644 index 000000000..ee7156082 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_capacity.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_capacity module +================================================= + +.. automodule:: kubernetes.test.test_v1_device_capacity + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_claim.rst b/doc/source/kubernetes.test.test_v1_device_claim.rst new file mode 100644 index 000000000..bc32c5b05 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_claim.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_claim module +============================================== + +.. automodule:: kubernetes.test.test_v1_device_claim + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_claim_configuration.rst b/doc/source/kubernetes.test.test_v1_device_claim_configuration.rst new file mode 100644 index 000000000..5b3de72c3 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_claim_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_claim\_configuration module +============================================================= + +.. automodule:: kubernetes.test.test_v1_device_claim_configuration + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_class.rst b/doc/source/kubernetes.test.test_v1_device_class.rst new file mode 100644 index 000000000..cfda7166e --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_class.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_class module +============================================== + +.. automodule:: kubernetes.test.test_v1_device_class + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_class_configuration.rst b/doc/source/kubernetes.test.test_v1_device_class_configuration.rst new file mode 100644 index 000000000..81ed5ec7c --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_class_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_class\_configuration module +============================================================= + +.. automodule:: kubernetes.test.test_v1_device_class_configuration + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_class_list.rst b/doc/source/kubernetes.test.test_v1_device_class_list.rst new file mode 100644 index 000000000..df12055a1 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_class\_list module +==================================================== + +.. automodule:: kubernetes.test.test_v1_device_class_list + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_class_spec.rst b/doc/source/kubernetes.test.test_v1_device_class_spec.rst new file mode 100644 index 000000000..50dd95579 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_class_spec.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_class\_spec module +==================================================== + +.. automodule:: kubernetes.test.test_v1_device_class_spec + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_constraint.rst b/doc/source/kubernetes.test.test_v1_device_constraint.rst new file mode 100644 index 000000000..23ec3932d --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_constraint.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_constraint module +=================================================== + +.. automodule:: kubernetes.test.test_v1_device_constraint + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_counter_consumption.rst b/doc/source/kubernetes.test.test_v1_device_counter_consumption.rst new file mode 100644 index 000000000..d6ce1699e --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_counter_consumption.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_counter\_consumption module +============================================================= + +.. automodule:: kubernetes.test.test_v1_device_counter_consumption + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_resource_claim.rst b/doc/source/kubernetes.test.test_v1_device_request.rst similarity index 50% rename from doc/source/kubernetes.test.test_v1_resource_claim.rst rename to doc/source/kubernetes.test.test_v1_device_request.rst index 3dab0e3ea..5d53c0f7c 100644 --- a/doc/source/kubernetes.test.test_v1_resource_claim.rst +++ b/doc/source/kubernetes.test.test_v1_device_request.rst @@ -1,7 +1,7 @@ -kubernetes.test.test\_v1\_resource\_claim module +kubernetes.test.test\_v1\_device\_request module ================================================ -.. automodule:: kubernetes.test.test_v1_resource_claim +.. automodule:: kubernetes.test.test_v1_device_request :members: :undoc-members: :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_request_allocation_result.rst b/doc/source/kubernetes.test.test_v1_device_request_allocation_result.rst new file mode 100644 index 000000000..1eb36751b --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_request_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_request\_allocation\_result module +==================================================================== + +.. automodule:: kubernetes.test.test_v1_device_request_allocation_result + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_selector.rst b/doc/source/kubernetes.test.test_v1_device_selector.rst new file mode 100644 index 000000000..067402750 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_selector module +================================================= + +.. automodule:: kubernetes.test.test_v1_device_selector + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_sub_request.rst b/doc/source/kubernetes.test.test_v1_device_sub_request.rst new file mode 100644 index 000000000..1bf2349f8 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_sub_request.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_sub\_request module +===================================================== + +.. automodule:: kubernetes.test.test_v1_device_sub_request + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_taint.rst b/doc/source/kubernetes.test.test_v1_device_taint.rst new file mode 100644 index 000000000..a6fe5c5f8 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_taint.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_taint module +============================================== + +.. automodule:: kubernetes.test.test_v1_device_taint + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_device_toleration.rst b/doc/source/kubernetes.test.test_v1_device_toleration.rst new file mode 100644 index 000000000..631c0679d --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_device_toleration.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_device\_toleration module +=================================================== + +.. automodule:: kubernetes.test.test_v1_device_toleration + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_exact_device_request.rst b/doc/source/kubernetes.test.test_v1_exact_device_request.rst new file mode 100644 index 000000000..3686ea505 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_exact_device_request.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_exact\_device\_request module +======================================================= + +.. automodule:: kubernetes.test.test_v1_exact_device_request + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_file_key_selector.rst b/doc/source/kubernetes.test.test_v1_file_key_selector.rst new file mode 100644 index 000000000..80d8df616 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_file_key_selector.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_file\_key\_selector module +==================================================== + +.. automodule:: kubernetes.test.test_v1_file_key_selector + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_network_device_data.rst b/doc/source/kubernetes.test.test_v1_network_device_data.rst new file mode 100644 index 000000000..37b36e75e --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_network_device_data.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_network\_device\_data module +====================================================== + +.. automodule:: kubernetes.test.test_v1_network_device_data + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_opaque_device_configuration.rst b/doc/source/kubernetes.test.test_v1_opaque_device_configuration.rst new file mode 100644 index 000000000..0175423b6 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_opaque_device_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_opaque\_device\_configuration module +============================================================== + +.. automodule:: kubernetes.test.test_v1_opaque_device_configuration + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_pod_certificate_projection.rst b/doc/source/kubernetes.test.test_v1_pod_certificate_projection.rst new file mode 100644 index 000000000..0f4778c21 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_pod_certificate_projection.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_pod\_certificate\_projection module +============================================================= + +.. automodule:: kubernetes.test.test_v1_pod_certificate_projection + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_pod_extended_resource_claim_status.rst b/doc/source/kubernetes.test.test_v1_pod_extended_resource_claim_status.rst new file mode 100644 index 000000000..68e7ac55c --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_pod_extended_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_pod\_extended\_resource\_claim\_status module +======================================================================= + +.. automodule:: kubernetes.test.test_v1_pod_extended_resource_claim_status + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_resource_claim_consumer_reference.rst b/doc/source/kubernetes.test.test_v1_resource_claim_consumer_reference.rst new file mode 100644 index 000000000..e90902b2d --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_resource_claim_consumer_reference.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_resource\_claim\_consumer\_reference module +===================================================================== + +.. automodule:: kubernetes.test.test_v1_resource_claim_consumer_reference + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_resource_claim_list.rst b/doc/source/kubernetes.test.test_v1_resource_claim_list.rst new file mode 100644 index 000000000..9ef9ec6ca --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_resource_claim_list.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_resource\_claim\_list module +====================================================== + +.. automodule:: kubernetes.test.test_v1_resource_claim_list + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_resource_claim_spec.rst b/doc/source/kubernetes.test.test_v1_resource_claim_spec.rst new file mode 100644 index 000000000..4d632f750 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_resource_claim_spec.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_resource\_claim\_spec module +====================================================== + +.. automodule:: kubernetes.test.test_v1_resource_claim_spec + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_resource_claim_status.rst b/doc/source/kubernetes.test.test_v1_resource_claim_status.rst new file mode 100644 index 000000000..8abe6053d --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_resource\_claim\_status module +======================================================== + +.. automodule:: kubernetes.test.test_v1_resource_claim_status + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_resource_claim_template.rst b/doc/source/kubernetes.test.test_v1_resource_claim_template.rst new file mode 100644 index 000000000..ade3c713d --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_resource_claim_template.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_resource\_claim\_template module +========================================================== + +.. automodule:: kubernetes.test.test_v1_resource_claim_template + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_resource_claim_template_list.rst b/doc/source/kubernetes.test.test_v1_resource_claim_template_list.rst new file mode 100644 index 000000000..12c74c10b --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_resource_claim_template_list.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_resource\_claim\_template\_list module +================================================================ + +.. automodule:: kubernetes.test.test_v1_resource_claim_template_list + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_resource_claim_template_spec.rst b/doc/source/kubernetes.test.test_v1_resource_claim_template_spec.rst new file mode 100644 index 000000000..6b5544582 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_resource_claim_template_spec.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_resource\_claim\_template\_spec module +================================================================ + +.. automodule:: kubernetes.test.test_v1_resource_claim_template_spec + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_resource_pool.rst b/doc/source/kubernetes.test.test_v1_resource_pool.rst new file mode 100644 index 000000000..a8ff15c39 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_resource_pool.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_resource\_pool module +=============================================== + +.. automodule:: kubernetes.test.test_v1_resource_pool + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_resource_slice.rst b/doc/source/kubernetes.test.test_v1_resource_slice.rst new file mode 100644 index 000000000..83c87d413 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_resource_slice.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_resource\_slice module +================================================ + +.. automodule:: kubernetes.test.test_v1_resource_slice + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_resource_slice_list.rst b/doc/source/kubernetes.test.test_v1_resource_slice_list.rst new file mode 100644 index 000000000..f4fc60214 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_resource_slice_list.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_resource\_slice\_list module +====================================================== + +.. automodule:: kubernetes.test.test_v1_resource_slice_list + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_resource_slice_spec.rst b/doc/source/kubernetes.test.test_v1_resource_slice_spec.rst new file mode 100644 index 000000000..b9a0de26c --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_resource_slice_spec.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_resource\_slice\_spec module +====================================================== + +.. automodule:: kubernetes.test.test_v1_resource_slice_spec + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_volume_attributes_class.rst b/doc/source/kubernetes.test.test_v1_volume_attributes_class.rst new file mode 100644 index 000000000..7fcfdc7c9 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_volume_attributes_class.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_volume\_attributes\_class module +========================================================== + +.. automodule:: kubernetes.test.test_v1_volume_attributes_class + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1_volume_attributes_class_list.rst b/doc/source/kubernetes.test.test_v1_volume_attributes_class_list.rst new file mode 100644 index 000000000..09bfa1397 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1_volume_attributes_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1\_volume\_attributes\_class\_list module +================================================================ + +.. automodule:: kubernetes.test.test_v1_volume_attributes_class_list + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy.rst b/doc/source/kubernetes.test.test_v1alpha1_pod_certificate_request.rst similarity index 69% rename from doc/source/kubernetes.test.test_v1beta1_validating_admission_policy.rst rename to doc/source/kubernetes.test.test_v1alpha1_pod_certificate_request.rst index 39e217f8b..232770f36 100644 --- a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy.rst +++ b/doc/source/kubernetes.test.test_v1alpha1_pod_certificate_request.rst @@ -1,7 +1,7 @@ -kubernetes.test.test\_v1beta1\_validating\_admission\_policy module -=================================================================== +kubernetes.test.test\_v1alpha1\_pod\_certificate\_request module +================================================================ -.. automodule:: kubernetes.test.test_v1beta1_validating_admission_policy +.. automodule:: kubernetes.test.test_v1alpha1_pod_certificate_request :members: :undoc-members: :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha1_pod_certificate_request_list.rst b/doc/source/kubernetes.test.test_v1alpha1_pod_certificate_request_list.rst new file mode 100644 index 000000000..c597fe084 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1alpha1_pod_certificate_request_list.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1alpha1\_pod\_certificate\_request\_list module +====================================================================== + +.. automodule:: kubernetes.test.test_v1alpha1_pod_certificate_request_list + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha1_pod_certificate_request_spec.rst b/doc/source/kubernetes.test.test_v1alpha1_pod_certificate_request_spec.rst new file mode 100644 index 000000000..79a431fd3 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1alpha1_pod_certificate_request_spec.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1alpha1\_pod\_certificate\_request\_spec module +====================================================================== + +.. automodule:: kubernetes.test.test_v1alpha1_pod_certificate_request_spec + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha1_pod_certificate_request_status.rst b/doc/source/kubernetes.test.test_v1alpha1_pod_certificate_request_status.rst new file mode 100644 index 000000000..7962d83b9 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1alpha1_pod_certificate_request_status.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1alpha1\_pod\_certificate\_request\_status module +======================================================================== + +.. automodule:: kubernetes.test.test_v1alpha1_pod_certificate_request_status + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_allocated_device_status.rst b/doc/source/kubernetes.test.test_v1alpha3_allocated_device_status.rst deleted file mode 100644 index 7963b543b..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_allocated_device_status.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_allocated\_device\_status module -================================================================ - -.. automodule:: kubernetes.test.test_v1alpha3_allocated_device_status - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_allocation_result.rst b/doc/source/kubernetes.test.test_v1alpha3_allocation_result.rst deleted file mode 100644 index 36661644f..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_allocation_result.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_allocation\_result module -========================================================= - -.. automodule:: kubernetes.test.test_v1alpha3_allocation_result - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_basic_device.rst b/doc/source/kubernetes.test.test_v1alpha3_basic_device.rst deleted file mode 100644 index fd5f1405d..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_basic_device.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_basic\_device module -==================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_basic_device - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_counter_set.rst b/doc/source/kubernetes.test.test_v1alpha3_counter_set.rst deleted file mode 100644 index 36f2b39b1..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_counter_set.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_counter\_set module -=================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_counter_set - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_allocation_configuration.rst b/doc/source/kubernetes.test.test_v1alpha3_device_allocation_configuration.rst deleted file mode 100644 index 180fe7d4b..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_allocation_configuration.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_allocation\_configuration module -======================================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_device_allocation_configuration - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_allocation_result.rst b/doc/source/kubernetes.test.test_v1alpha3_device_allocation_result.rst deleted file mode 100644 index 4f2036367..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_allocation_result.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_allocation\_result module -================================================================= - -.. automodule:: kubernetes.test.test_v1alpha3_device_allocation_result - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_attribute.rst b/doc/source/kubernetes.test.test_v1alpha3_device_attribute.rst deleted file mode 100644 index 3a186b3e8..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_attribute.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_attribute module -======================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_device_attribute - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_claim.rst b/doc/source/kubernetes.test.test_v1alpha3_device_claim.rst deleted file mode 100644 index 4196836f4..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_claim.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_claim module -==================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_device_claim - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_claim_configuration.rst b/doc/source/kubernetes.test.test_v1alpha3_device_claim_configuration.rst deleted file mode 100644 index e04bacbd5..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_claim_configuration.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_claim\_configuration module -=================================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_device_claim_configuration - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_class.rst b/doc/source/kubernetes.test.test_v1alpha3_device_class.rst deleted file mode 100644 index b82b754ea..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_class.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_class module -==================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_device_class - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_class_configuration.rst b/doc/source/kubernetes.test.test_v1alpha3_device_class_configuration.rst deleted file mode 100644 index 4e17c6be5..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_class_configuration.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_class\_configuration module -=================================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_device_class_configuration - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_class_list.rst b/doc/source/kubernetes.test.test_v1alpha3_device_class_list.rst deleted file mode 100644 index fb80803ee..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_class_list.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_class\_list module -========================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_device_class_list - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_class_spec.rst b/doc/source/kubernetes.test.test_v1alpha3_device_class_spec.rst deleted file mode 100644 index df824dd0d..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_class_spec.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_class\_spec module -========================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_device_class_spec - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_constraint.rst b/doc/source/kubernetes.test.test_v1alpha3_device_constraint.rst deleted file mode 100644 index dfd78d041..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_constraint.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_constraint module -========================================================= - -.. automodule:: kubernetes.test.test_v1alpha3_device_constraint - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_counter_consumption.rst b/doc/source/kubernetes.test.test_v1alpha3_device_counter_consumption.rst deleted file mode 100644 index 5dd9056e5..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_counter_consumption.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_counter\_consumption module -=================================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_device_counter_consumption - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_request.rst b/doc/source/kubernetes.test.test_v1alpha3_device_request.rst deleted file mode 100644 index 9c4a72edf..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_request.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_request module -====================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_device_request - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_request_allocation_result.rst b/doc/source/kubernetes.test.test_v1alpha3_device_request_allocation_result.rst deleted file mode 100644 index c4a1dd604..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_request_allocation_result.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_request\_allocation\_result module -========================================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_device_request_allocation_result - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_sub_request.rst b/doc/source/kubernetes.test.test_v1alpha3_device_sub_request.rst deleted file mode 100644 index 0bf15d731..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_sub_request.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_sub\_request module -=========================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_device_sub_request - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_device_toleration.rst b/doc/source/kubernetes.test.test_v1alpha3_device_toleration.rst deleted file mode 100644 index 195e50d76..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_device_toleration.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_device\_toleration module -========================================================= - -.. automodule:: kubernetes.test.test_v1alpha3_device_toleration - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_network_device_data.rst b/doc/source/kubernetes.test.test_v1alpha3_network_device_data.rst deleted file mode 100644 index 7a0c8c070..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_network_device_data.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_network\_device\_data module -============================================================ - -.. automodule:: kubernetes.test.test_v1alpha3_network_device_data - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_opaque_device_configuration.rst b/doc/source/kubernetes.test.test_v1alpha3_opaque_device_configuration.rst deleted file mode 100644 index 3290f692e..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_opaque_device_configuration.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_opaque\_device\_configuration module -==================================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_opaque_device_configuration - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_resource_claim.rst b/doc/source/kubernetes.test.test_v1alpha3_resource_claim.rst deleted file mode 100644 index 6fd7b3e66..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_resource_claim.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_resource\_claim module -====================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_resource_claim - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_consumer_reference.rst b/doc/source/kubernetes.test.test_v1alpha3_resource_claim_consumer_reference.rst deleted file mode 100644 index 3acc18dea..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_consumer_reference.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_resource\_claim\_consumer\_reference module -=========================================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_resource_claim_consumer_reference - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_list.rst b/doc/source/kubernetes.test.test_v1alpha3_resource_claim_list.rst deleted file mode 100644 index 492599e76..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_list.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_resource\_claim\_list module -============================================================ - -.. automodule:: kubernetes.test.test_v1alpha3_resource_claim_list - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_spec.rst b/doc/source/kubernetes.test.test_v1alpha3_resource_claim_spec.rst deleted file mode 100644 index 3f4e71def..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_spec.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_resource\_claim\_spec module -============================================================ - -.. automodule:: kubernetes.test.test_v1alpha3_resource_claim_spec - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_status.rst b/doc/source/kubernetes.test.test_v1alpha3_resource_claim_status.rst deleted file mode 100644 index acacd3f96..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_status.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_resource\_claim\_status module -============================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_resource_claim_status - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_template.rst b/doc/source/kubernetes.test.test_v1alpha3_resource_claim_template.rst deleted file mode 100644 index a821ee06e..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_template.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_resource\_claim\_template module -================================================================ - -.. automodule:: kubernetes.test.test_v1alpha3_resource_claim_template - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_template_list.rst b/doc/source/kubernetes.test.test_v1alpha3_resource_claim_template_list.rst deleted file mode 100644 index 2fe5f5753..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_template_list.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_resource\_claim\_template\_list module -====================================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_resource_claim_template_list - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_template_spec.rst b/doc/source/kubernetes.test.test_v1alpha3_resource_claim_template_spec.rst deleted file mode 100644 index f2342406f..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_resource_claim_template_spec.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_resource\_claim\_template\_spec module -====================================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_resource_claim_template_spec - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_resource_pool.rst b/doc/source/kubernetes.test.test_v1alpha3_resource_pool.rst deleted file mode 100644 index 6a0722eab..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_resource_pool.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_resource\_pool module -===================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_resource_pool - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_resource_slice.rst b/doc/source/kubernetes.test.test_v1alpha3_resource_slice.rst deleted file mode 100644 index 8a688cb42..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_resource_slice.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_resource\_slice module -====================================================== - -.. automodule:: kubernetes.test.test_v1alpha3_resource_slice - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_resource_slice_list.rst b/doc/source/kubernetes.test.test_v1alpha3_resource_slice_list.rst deleted file mode 100644 index 4af58a567..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_resource_slice_list.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_resource\_slice\_list module -============================================================ - -.. automodule:: kubernetes.test.test_v1alpha3_resource_slice_list - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1alpha3_resource_slice_spec.rst b/doc/source/kubernetes.test.test_v1alpha3_resource_slice_spec.rst deleted file mode 100644 index 1af2830ab..000000000 --- a/doc/source/kubernetes.test.test_v1alpha3_resource_slice_spec.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1alpha3\_resource\_slice\_spec module -============================================================ - -.. automodule:: kubernetes.test.test_v1alpha3_resource_slice_spec - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_apply_configuration.rst b/doc/source/kubernetes.test.test_v1beta1_apply_configuration.rst new file mode 100644 index 000000000..e354a9cb7 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta1_apply_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta1\_apply\_configuration module +========================================================== + +.. automodule:: kubernetes.test.test_v1beta1_apply_configuration + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_audit_annotation.rst b/doc/source/kubernetes.test.test_v1beta1_audit_annotation.rst deleted file mode 100644 index 88839bebf..000000000 --- a/doc/source/kubernetes.test.test_v1beta1_audit_annotation.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1beta1\_audit\_annotation module -======================================================= - -.. automodule:: kubernetes.test.test_v1beta1_audit_annotation - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_capacity_request_policy.rst b/doc/source/kubernetes.test.test_v1beta1_capacity_request_policy.rst new file mode 100644 index 000000000..e736ba904 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta1_capacity_request_policy.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta1\_capacity\_request\_policy module +=============================================================== + +.. automodule:: kubernetes.test.test_v1beta1_capacity_request_policy + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_capacity_request_policy_range.rst b/doc/source/kubernetes.test.test_v1beta1_capacity_request_policy_range.rst new file mode 100644 index 000000000..333fd1652 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta1_capacity_request_policy_range.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta1\_capacity\_request\_policy\_range module +====================================================================== + +.. automodule:: kubernetes.test.test_v1beta1_capacity_request_policy_range + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_capacity_requirements.rst b/doc/source/kubernetes.test.test_v1beta1_capacity_requirements.rst new file mode 100644 index 000000000..3ccc878ec --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta1_capacity_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta1\_capacity\_requirements module +============================================================ + +.. automodule:: kubernetes.test.test_v1beta1_capacity_requirements + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_expression_warning.rst b/doc/source/kubernetes.test.test_v1beta1_expression_warning.rst deleted file mode 100644 index d156ab910..000000000 --- a/doc/source/kubernetes.test.test_v1beta1_expression_warning.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1beta1\_expression\_warning module -========================================================= - -.. automodule:: kubernetes.test.test_v1beta1_expression_warning - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_json_patch.rst b/doc/source/kubernetes.test.test_v1beta1_json_patch.rst new file mode 100644 index 000000000..029152cb5 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta1_json_patch.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta1\_json\_patch module +================================================= + +.. automodule:: kubernetes.test.test_v1beta1_json_patch + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy.rst b/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy.rst new file mode 100644 index 000000000..ab85dcea0 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta1\_mutating\_admission\_policy module +================================================================= + +.. automodule:: kubernetes.test.test_v1beta1_mutating_admission_policy + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_binding.rst b/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_binding.rst new file mode 100644 index 000000000..c069f3be9 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_binding.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta1\_mutating\_admission\_policy\_binding module +========================================================================== + +.. automodule:: kubernetes.test.test_v1beta1_mutating_admission_policy_binding + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_binding_list.rst b/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_binding_list.rst new file mode 100644 index 000000000..1372ccd80 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta1\_mutating\_admission\_policy\_binding\_list module +================================================================================ + +.. automodule:: kubernetes.test.test_v1beta1_mutating_admission_policy_binding_list + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_binding_spec.rst b/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_binding_spec.rst new file mode 100644 index 000000000..84ed0576f --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_binding_spec.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta1\_mutating\_admission\_policy\_binding\_spec module +================================================================================ + +.. automodule:: kubernetes.test.test_v1beta1_mutating_admission_policy_binding_spec + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_list.rst b/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_list.rst new file mode 100644 index 000000000..66ca53897 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_list.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta1\_mutating\_admission\_policy\_list module +======================================================================= + +.. automodule:: kubernetes.test.test_v1beta1_mutating_admission_policy_list + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_spec.rst b/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_spec.rst new file mode 100644 index 000000000..85c49d998 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta1_mutating_admission_policy_spec.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta1\_mutating\_admission\_policy\_spec module +======================================================================= + +.. automodule:: kubernetes.test.test_v1beta1_mutating_admission_policy_spec + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_mutation.rst b/doc/source/kubernetes.test.test_v1beta1_mutation.rst new file mode 100644 index 000000000..5abbfbb1b --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta1_mutation.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta1\_mutation module +============================================== + +.. automodule:: kubernetes.test.test_v1beta1_mutation + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_type_checking.rst b/doc/source/kubernetes.test.test_v1beta1_type_checking.rst deleted file mode 100644 index 1000fbd9a..000000000 --- a/doc/source/kubernetes.test.test_v1beta1_type_checking.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1beta1\_type\_checking module -==================================================== - -.. automodule:: kubernetes.test.test_v1beta1_type_checking - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_binding.rst b/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_binding.rst deleted file mode 100644 index 5385e59e5..000000000 --- a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_binding.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1beta1\_validating\_admission\_policy\_binding module -============================================================================ - -.. automodule:: kubernetes.test.test_v1beta1_validating_admission_policy_binding - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_binding_list.rst b/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_binding_list.rst deleted file mode 100644 index 6895d7e55..000000000 --- a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_binding_list.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1beta1\_validating\_admission\_policy\_binding\_list module -================================================================================== - -.. automodule:: kubernetes.test.test_v1beta1_validating_admission_policy_binding_list - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_binding_spec.rst b/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_binding_spec.rst deleted file mode 100644 index b34ff834e..000000000 --- a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_binding_spec.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1beta1\_validating\_admission\_policy\_binding\_spec module -================================================================================== - -.. automodule:: kubernetes.test.test_v1beta1_validating_admission_policy_binding_spec - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_list.rst b/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_list.rst deleted file mode 100644 index 88d75f6f3..000000000 --- a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_list.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1beta1\_validating\_admission\_policy\_list module -========================================================================= - -.. automodule:: kubernetes.test.test_v1beta1_validating_admission_policy_list - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_spec.rst b/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_spec.rst deleted file mode 100644 index 00b1967d8..000000000 --- a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_spec.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1beta1\_validating\_admission\_policy\_spec module -========================================================================= - -.. automodule:: kubernetes.test.test_v1beta1_validating_admission_policy_spec - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_status.rst b/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_status.rst deleted file mode 100644 index 2e03af410..000000000 --- a/doc/source/kubernetes.test.test_v1beta1_validating_admission_policy_status.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1beta1\_validating\_admission\_policy\_status module -=========================================================================== - -.. automodule:: kubernetes.test.test_v1beta1_validating_admission_policy_status - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta1_validation.rst b/doc/source/kubernetes.test.test_v1beta1_validation.rst deleted file mode 100644 index e7dc351b5..000000000 --- a/doc/source/kubernetes.test.test_v1beta1_validation.rst +++ /dev/null @@ -1,7 +0,0 @@ -kubernetes.test.test\_v1beta1\_validation module -================================================ - -.. automodule:: kubernetes.test.test_v1beta1_validation - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta2_capacity_request_policy.rst b/doc/source/kubernetes.test.test_v1beta2_capacity_request_policy.rst new file mode 100644 index 000000000..9d39eebc9 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta2_capacity_request_policy.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta2\_capacity\_request\_policy module +=============================================================== + +.. automodule:: kubernetes.test.test_v1beta2_capacity_request_policy + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta2_capacity_request_policy_range.rst b/doc/source/kubernetes.test.test_v1beta2_capacity_request_policy_range.rst new file mode 100644 index 000000000..d806b511b --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta2_capacity_request_policy_range.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta2\_capacity\_request\_policy\_range module +====================================================================== + +.. automodule:: kubernetes.test.test_v1beta2_capacity_request_policy_range + :members: + :undoc-members: + :show-inheritance: diff --git a/doc/source/kubernetes.test.test_v1beta2_capacity_requirements.rst b/doc/source/kubernetes.test.test_v1beta2_capacity_requirements.rst new file mode 100644 index 000000000..593cef215 --- /dev/null +++ b/doc/source/kubernetes.test.test_v1beta2_capacity_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.test.test\_v1beta2\_capacity\_requirements module +============================================================ + +.. automodule:: kubernetes.test.test_v1beta2_capacity_requirements + :members: + :undoc-members: + :show-inheritance: diff --git a/kubernetes/.openapi-generator/swagger.json.sha256 b/kubernetes/.openapi-generator/swagger.json.sha256 index e1c735a3e..7b5a7d230 100644 --- a/kubernetes/.openapi-generator/swagger.json.sha256 +++ b/kubernetes/.openapi-generator/swagger.json.sha256 @@ -1 +1 @@ -3719716452f80e563e68870f3e8cd5e0589ab0fc93c22573a8157498ea71b95a \ No newline at end of file +41fe6392f32546ef9de874ed9da06d31cad0a1fcdd8bd9f161328c21a257b1fd \ No newline at end of file diff --git a/kubernetes/README.md b/kubernetes/README.md index 618ea0352..7467a3e21 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.33 -- Package version: 33.0.0+snapshot +- API version: release-1.34 +- Package version: 34.0.0+snapshot - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. @@ -130,24 +130,21 @@ Class | Method | HTTP request | Description *AdmissionregistrationV1alpha1Api* | [**read_mutating_admission_policy_binding**](docs/AdmissionregistrationV1alpha1Api.md#read_mutating_admission_policy_binding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name} | *AdmissionregistrationV1alpha1Api* | [**replace_mutating_admission_policy**](docs/AdmissionregistrationV1alpha1Api.md#replace_mutating_admission_policy) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name} | *AdmissionregistrationV1alpha1Api* | [**replace_mutating_admission_policy_binding**](docs/AdmissionregistrationV1alpha1Api.md#replace_mutating_admission_policy_binding) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name} | -*AdmissionregistrationV1beta1Api* | [**create_validating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#create_validating_admission_policy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | -*AdmissionregistrationV1beta1Api* | [**create_validating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#create_validating_admission_policy_binding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | -*AdmissionregistrationV1beta1Api* | [**delete_collection_validating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#delete_collection_validating_admission_policy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | -*AdmissionregistrationV1beta1Api* | [**delete_collection_validating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#delete_collection_validating_admission_policy_binding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | -*AdmissionregistrationV1beta1Api* | [**delete_validating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#delete_validating_admission_policy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -*AdmissionregistrationV1beta1Api* | [**delete_validating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#delete_validating_admission_policy_binding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | +*AdmissionregistrationV1beta1Api* | [**create_mutating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#create_mutating_admission_policy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | +*AdmissionregistrationV1beta1Api* | [**create_mutating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#create_mutating_admission_policy_binding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | +*AdmissionregistrationV1beta1Api* | [**delete_collection_mutating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#delete_collection_mutating_admission_policy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | +*AdmissionregistrationV1beta1Api* | [**delete_collection_mutating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#delete_collection_mutating_admission_policy_binding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | +*AdmissionregistrationV1beta1Api* | [**delete_mutating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#delete_mutating_admission_policy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +*AdmissionregistrationV1beta1Api* | [**delete_mutating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#delete_mutating_admission_policy_binding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | *AdmissionregistrationV1beta1Api* | [**get_api_resources**](docs/AdmissionregistrationV1beta1Api.md#get_api_resources) | **GET** /apis/admissionregistration.k8s.io/v1beta1/ | -*AdmissionregistrationV1beta1Api* | [**list_validating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#list_validating_admission_policy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | -*AdmissionregistrationV1beta1Api* | [**list_validating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#list_validating_admission_policy_binding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | -*AdmissionregistrationV1beta1Api* | [**patch_validating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#patch_validating_admission_policy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -*AdmissionregistrationV1beta1Api* | [**patch_validating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#patch_validating_admission_policy_binding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | -*AdmissionregistrationV1beta1Api* | [**patch_validating_admission_policy_status**](docs/AdmissionregistrationV1beta1Api.md#patch_validating_admission_policy_status) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | -*AdmissionregistrationV1beta1Api* | [**read_validating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#read_validating_admission_policy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -*AdmissionregistrationV1beta1Api* | [**read_validating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#read_validating_admission_policy_binding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | -*AdmissionregistrationV1beta1Api* | [**read_validating_admission_policy_status**](docs/AdmissionregistrationV1beta1Api.md#read_validating_admission_policy_status) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | -*AdmissionregistrationV1beta1Api* | [**replace_validating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#replace_validating_admission_policy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -*AdmissionregistrationV1beta1Api* | [**replace_validating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#replace_validating_admission_policy_binding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | -*AdmissionregistrationV1beta1Api* | [**replace_validating_admission_policy_status**](docs/AdmissionregistrationV1beta1Api.md#replace_validating_admission_policy_status) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | +*AdmissionregistrationV1beta1Api* | [**list_mutating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#list_mutating_admission_policy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | +*AdmissionregistrationV1beta1Api* | [**list_mutating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#list_mutating_admission_policy_binding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | +*AdmissionregistrationV1beta1Api* | [**patch_mutating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#patch_mutating_admission_policy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +*AdmissionregistrationV1beta1Api* | [**patch_mutating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#patch_mutating_admission_policy_binding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | +*AdmissionregistrationV1beta1Api* | [**read_mutating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#read_mutating_admission_policy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +*AdmissionregistrationV1beta1Api* | [**read_mutating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#read_mutating_admission_policy_binding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | +*AdmissionregistrationV1beta1Api* | [**replace_mutating_admission_policy**](docs/AdmissionregistrationV1beta1Api.md#replace_mutating_admission_policy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +*AdmissionregistrationV1beta1Api* | [**replace_mutating_admission_policy_binding**](docs/AdmissionregistrationV1beta1Api.md#replace_mutating_admission_policy_binding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | *ApiextensionsApi* | [**get_api_group**](docs/ApiextensionsApi.md#get_api_group) | **GET** /apis/apiextensions.k8s.io/ | *ApiextensionsV1Api* | [**create_custom_resource_definition**](docs/ApiextensionsV1Api.md#create_custom_resource_definition) | **POST** /apis/apiextensions.k8s.io/v1/customresourcedefinitions | *ApiextensionsV1Api* | [**delete_collection_custom_resource_definition**](docs/ApiextensionsV1Api.md#delete_collection_custom_resource_definition) | **DELETE** /apis/apiextensions.k8s.io/v1/customresourcedefinitions | @@ -311,13 +308,24 @@ Class | Method | HTTP request | Description *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* | [**create_namespaced_pod_certificate_request**](docs/CertificatesV1alpha1Api.md#create_namespaced_pod_certificate_request) | **POST** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | *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* | [**delete_collection_namespaced_pod_certificate_request**](docs/CertificatesV1alpha1Api.md#delete_collection_namespaced_pod_certificate_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | +*CertificatesV1alpha1Api* | [**delete_namespaced_pod_certificate_request**](docs/CertificatesV1alpha1Api.md#delete_namespaced_pod_certificate_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | *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* | [**list_namespaced_pod_certificate_request**](docs/CertificatesV1alpha1Api.md#list_namespaced_pod_certificate_request) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | +*CertificatesV1alpha1Api* | [**list_pod_certificate_request_for_all_namespaces**](docs/CertificatesV1alpha1Api.md#list_pod_certificate_request_for_all_namespaces) | **GET** /apis/certificates.k8s.io/v1alpha1/podcertificaterequests | *CertificatesV1alpha1Api* | [**patch_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#patch_cluster_trust_bundle) | **PATCH** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +*CertificatesV1alpha1Api* | [**patch_namespaced_pod_certificate_request**](docs/CertificatesV1alpha1Api.md#patch_namespaced_pod_certificate_request) | **PATCH** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | +*CertificatesV1alpha1Api* | [**patch_namespaced_pod_certificate_request_status**](docs/CertificatesV1alpha1Api.md#patch_namespaced_pod_certificate_request_status) | **PATCH** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | *CertificatesV1alpha1Api* | [**read_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#read_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +*CertificatesV1alpha1Api* | [**read_namespaced_pod_certificate_request**](docs/CertificatesV1alpha1Api.md#read_namespaced_pod_certificate_request) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | +*CertificatesV1alpha1Api* | [**read_namespaced_pod_certificate_request_status**](docs/CertificatesV1alpha1Api.md#read_namespaced_pod_certificate_request_status) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | *CertificatesV1alpha1Api* | [**replace_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#replace_cluster_trust_bundle) | **PUT** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +*CertificatesV1alpha1Api* | [**replace_namespaced_pod_certificate_request**](docs/CertificatesV1alpha1Api.md#replace_namespaced_pod_certificate_request) | **PUT** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | +*CertificatesV1alpha1Api* | [**replace_namespaced_pod_certificate_request_status**](docs/CertificatesV1alpha1Api.md#replace_namespaced_pod_certificate_request_status) | **PUT** /apis/certificates.k8s.io/v1alpha1/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* | [**delete_cluster_trust_bundle**](docs/CertificatesV1beta1Api.md#delete_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | *CertificatesV1beta1Api* | [**delete_collection_cluster_trust_bundle**](docs/CertificatesV1beta1Api.md#delete_collection_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | @@ -764,47 +772,48 @@ Class | Method | HTTP request | Description *RbacAuthorizationV1Api* | [**replace_namespaced_role**](docs/RbacAuthorizationV1Api.md#replace_namespaced_role) | **PUT** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} | *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/ | -*ResourceV1alpha3Api* | [**create_device_class**](docs/ResourceV1alpha3Api.md#create_device_class) | **POST** /apis/resource.k8s.io/v1alpha3/deviceclasses | +*ResourceV1Api* | [**create_device_class**](docs/ResourceV1Api.md#create_device_class) | **POST** /apis/resource.k8s.io/v1/deviceclasses | +*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_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_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_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_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_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_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} | +*ResourceV1Api* | [**replace_resource_slice**](docs/ResourceV1Api.md#replace_resource_slice) | **PUT** /apis/resource.k8s.io/v1/resourceslices/{name} | *ResourceV1alpha3Api* | [**create_device_taint_rule**](docs/ResourceV1alpha3Api.md#create_device_taint_rule) | **POST** /apis/resource.k8s.io/v1alpha3/devicetaintrules | -*ResourceV1alpha3Api* | [**create_namespaced_resource_claim**](docs/ResourceV1alpha3Api.md#create_namespaced_resource_claim) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | -*ResourceV1alpha3Api* | [**create_namespaced_resource_claim_template**](docs/ResourceV1alpha3Api.md#create_namespaced_resource_claim_template) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | -*ResourceV1alpha3Api* | [**create_resource_slice**](docs/ResourceV1alpha3Api.md#create_resource_slice) | **POST** /apis/resource.k8s.io/v1alpha3/resourceslices | -*ResourceV1alpha3Api* | [**delete_collection_device_class**](docs/ResourceV1alpha3Api.md#delete_collection_device_class) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses | *ResourceV1alpha3Api* | [**delete_collection_device_taint_rule**](docs/ResourceV1alpha3Api.md#delete_collection_device_taint_rule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules | -*ResourceV1alpha3Api* | [**delete_collection_namespaced_resource_claim**](docs/ResourceV1alpha3Api.md#delete_collection_namespaced_resource_claim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | -*ResourceV1alpha3Api* | [**delete_collection_namespaced_resource_claim_template**](docs/ResourceV1alpha3Api.md#delete_collection_namespaced_resource_claim_template) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | -*ResourceV1alpha3Api* | [**delete_collection_resource_slice**](docs/ResourceV1alpha3Api.md#delete_collection_resource_slice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices | -*ResourceV1alpha3Api* | [**delete_device_class**](docs/ResourceV1alpha3Api.md#delete_device_class) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | *ResourceV1alpha3Api* | [**delete_device_taint_rule**](docs/ResourceV1alpha3Api.md#delete_device_taint_rule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | -*ResourceV1alpha3Api* | [**delete_namespaced_resource_claim**](docs/ResourceV1alpha3Api.md#delete_namespaced_resource_claim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -*ResourceV1alpha3Api* | [**delete_namespaced_resource_claim_template**](docs/ResourceV1alpha3Api.md#delete_namespaced_resource_claim_template) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -*ResourceV1alpha3Api* | [**delete_resource_slice**](docs/ResourceV1alpha3Api.md#delete_resource_slice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | *ResourceV1alpha3Api* | [**get_api_resources**](docs/ResourceV1alpha3Api.md#get_api_resources) | **GET** /apis/resource.k8s.io/v1alpha3/ | -*ResourceV1alpha3Api* | [**list_device_class**](docs/ResourceV1alpha3Api.md#list_device_class) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses | *ResourceV1alpha3Api* | [**list_device_taint_rule**](docs/ResourceV1alpha3Api.md#list_device_taint_rule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules | -*ResourceV1alpha3Api* | [**list_namespaced_resource_claim**](docs/ResourceV1alpha3Api.md#list_namespaced_resource_claim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | -*ResourceV1alpha3Api* | [**list_namespaced_resource_claim_template**](docs/ResourceV1alpha3Api.md#list_namespaced_resource_claim_template) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | -*ResourceV1alpha3Api* | [**list_resource_claim_for_all_namespaces**](docs/ResourceV1alpha3Api.md#list_resource_claim_for_all_namespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaims | -*ResourceV1alpha3Api* | [**list_resource_claim_template_for_all_namespaces**](docs/ResourceV1alpha3Api.md#list_resource_claim_template_for_all_namespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaimtemplates | -*ResourceV1alpha3Api* | [**list_resource_slice**](docs/ResourceV1alpha3Api.md#list_resource_slice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices | -*ResourceV1alpha3Api* | [**patch_device_class**](docs/ResourceV1alpha3Api.md#patch_device_class) | **PATCH** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | *ResourceV1alpha3Api* | [**patch_device_taint_rule**](docs/ResourceV1alpha3Api.md#patch_device_taint_rule) | **PATCH** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | -*ResourceV1alpha3Api* | [**patch_namespaced_resource_claim**](docs/ResourceV1alpha3Api.md#patch_namespaced_resource_claim) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -*ResourceV1alpha3Api* | [**patch_namespaced_resource_claim_status**](docs/ResourceV1alpha3Api.md#patch_namespaced_resource_claim_status) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | -*ResourceV1alpha3Api* | [**patch_namespaced_resource_claim_template**](docs/ResourceV1alpha3Api.md#patch_namespaced_resource_claim_template) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -*ResourceV1alpha3Api* | [**patch_resource_slice**](docs/ResourceV1alpha3Api.md#patch_resource_slice) | **PATCH** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | -*ResourceV1alpha3Api* | [**read_device_class**](docs/ResourceV1alpha3Api.md#read_device_class) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | *ResourceV1alpha3Api* | [**read_device_taint_rule**](docs/ResourceV1alpha3Api.md#read_device_taint_rule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | -*ResourceV1alpha3Api* | [**read_namespaced_resource_claim**](docs/ResourceV1alpha3Api.md#read_namespaced_resource_claim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -*ResourceV1alpha3Api* | [**read_namespaced_resource_claim_status**](docs/ResourceV1alpha3Api.md#read_namespaced_resource_claim_status) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | -*ResourceV1alpha3Api* | [**read_namespaced_resource_claim_template**](docs/ResourceV1alpha3Api.md#read_namespaced_resource_claim_template) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -*ResourceV1alpha3Api* | [**read_resource_slice**](docs/ResourceV1alpha3Api.md#read_resource_slice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | -*ResourceV1alpha3Api* | [**replace_device_class**](docs/ResourceV1alpha3Api.md#replace_device_class) | **PUT** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | *ResourceV1alpha3Api* | [**replace_device_taint_rule**](docs/ResourceV1alpha3Api.md#replace_device_taint_rule) | **PUT** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | -*ResourceV1alpha3Api* | [**replace_namespaced_resource_claim**](docs/ResourceV1alpha3Api.md#replace_namespaced_resource_claim) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -*ResourceV1alpha3Api* | [**replace_namespaced_resource_claim_status**](docs/ResourceV1alpha3Api.md#replace_namespaced_resource_claim_status) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | -*ResourceV1alpha3Api* | [**replace_namespaced_resource_claim_template**](docs/ResourceV1alpha3Api.md#replace_namespaced_resource_claim_template) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -*ResourceV1alpha3Api* | [**replace_resource_slice**](docs/ResourceV1alpha3Api.md#replace_resource_slice) | **PUT** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | *ResourceV1beta1Api* | [**create_device_class**](docs/ResourceV1beta1Api.md#create_device_class) | **POST** /apis/resource.k8s.io/v1beta1/deviceclasses | *ResourceV1beta1Api* | [**create_namespaced_resource_claim**](docs/ResourceV1beta1Api.md#create_namespaced_resource_claim) | **POST** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims | *ResourceV1beta1Api* | [**create_namespaced_resource_claim_template**](docs/ResourceV1beta1Api.md#create_namespaced_resource_claim_template) | **POST** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates | @@ -888,16 +897,19 @@ Class | Method | HTTP request | Description *StorageV1Api* | [**create_namespaced_csi_storage_capacity**](docs/StorageV1Api.md#create_namespaced_csi_storage_capacity) | **POST** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | *StorageV1Api* | [**create_storage_class**](docs/StorageV1Api.md#create_storage_class) | **POST** /apis/storage.k8s.io/v1/storageclasses | *StorageV1Api* | [**create_volume_attachment**](docs/StorageV1Api.md#create_volume_attachment) | **POST** /apis/storage.k8s.io/v1/volumeattachments | +*StorageV1Api* | [**create_volume_attributes_class**](docs/StorageV1Api.md#create_volume_attributes_class) | **POST** /apis/storage.k8s.io/v1/volumeattributesclasses | *StorageV1Api* | [**delete_collection_csi_driver**](docs/StorageV1Api.md#delete_collection_csi_driver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers | *StorageV1Api* | [**delete_collection_csi_node**](docs/StorageV1Api.md#delete_collection_csi_node) | **DELETE** /apis/storage.k8s.io/v1/csinodes | *StorageV1Api* | [**delete_collection_namespaced_csi_storage_capacity**](docs/StorageV1Api.md#delete_collection_namespaced_csi_storage_capacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | *StorageV1Api* | [**delete_collection_storage_class**](docs/StorageV1Api.md#delete_collection_storage_class) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | *StorageV1Api* | [**delete_collection_volume_attachment**](docs/StorageV1Api.md#delete_collection_volume_attachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments | +*StorageV1Api* | [**delete_collection_volume_attributes_class**](docs/StorageV1Api.md#delete_collection_volume_attributes_class) | **DELETE** /apis/storage.k8s.io/v1/volumeattributesclasses | *StorageV1Api* | [**delete_csi_driver**](docs/StorageV1Api.md#delete_csi_driver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers/{name} | *StorageV1Api* | [**delete_csi_node**](docs/StorageV1Api.md#delete_csi_node) | **DELETE** /apis/storage.k8s.io/v1/csinodes/{name} | *StorageV1Api* | [**delete_namespaced_csi_storage_capacity**](docs/StorageV1Api.md#delete_namespaced_csi_storage_capacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | *StorageV1Api* | [**delete_storage_class**](docs/StorageV1Api.md#delete_storage_class) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | *StorageV1Api* | [**delete_volume_attachment**](docs/StorageV1Api.md#delete_volume_attachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments/{name} | +*StorageV1Api* | [**delete_volume_attributes_class**](docs/StorageV1Api.md#delete_volume_attributes_class) | **DELETE** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | *StorageV1Api* | [**get_api_resources**](docs/StorageV1Api.md#get_api_resources) | **GET** /apis/storage.k8s.io/v1/ | *StorageV1Api* | [**list_csi_driver**](docs/StorageV1Api.md#list_csi_driver) | **GET** /apis/storage.k8s.io/v1/csidrivers | *StorageV1Api* | [**list_csi_node**](docs/StorageV1Api.md#list_csi_node) | **GET** /apis/storage.k8s.io/v1/csinodes | @@ -905,24 +917,28 @@ Class | Method | HTTP request | Description *StorageV1Api* | [**list_namespaced_csi_storage_capacity**](docs/StorageV1Api.md#list_namespaced_csi_storage_capacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | *StorageV1Api* | [**list_storage_class**](docs/StorageV1Api.md#list_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses | *StorageV1Api* | [**list_volume_attachment**](docs/StorageV1Api.md#list_volume_attachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments | +*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_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} | *StorageV1Api* | [**patch_volume_attachment_status**](docs/StorageV1Api.md#patch_volume_attachment_status) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | +*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_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} | *StorageV1Api* | [**read_volume_attachment_status**](docs/StorageV1Api.md#read_volume_attachment_status) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | +*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_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} | *StorageV1alpha1Api* | [**create_volume_attributes_class**](docs/StorageV1alpha1Api.md#create_volume_attributes_class) | **POST** /apis/storage.k8s.io/v1alpha1/volumeattributesclasses | *StorageV1alpha1Api* | [**delete_collection_volume_attributes_class**](docs/StorageV1alpha1Api.md#delete_collection_volume_attributes_class) | **DELETE** /apis/storage.k8s.io/v1alpha1/volumeattributesclasses | *StorageV1alpha1Api* | [**delete_volume_attributes_class**](docs/StorageV1alpha1Api.md#delete_volume_attributes_class) | **DELETE** /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name} | @@ -966,12 +982,14 @@ Class | Method | HTTP request | Description - [CoreV1Event](docs/CoreV1Event.md) - [CoreV1EventList](docs/CoreV1EventList.md) - [CoreV1EventSeries](docs/CoreV1EventSeries.md) + - [CoreV1ResourceClaim](docs/CoreV1ResourceClaim.md) - [DiscoveryV1EndpointPort](docs/DiscoveryV1EndpointPort.md) - [EventsV1Event](docs/EventsV1Event.md) - [EventsV1EventList](docs/EventsV1EventList.md) - [EventsV1EventSeries](docs/EventsV1EventSeries.md) - [FlowcontrolV1Subject](docs/FlowcontrolV1Subject.md) - [RbacV1Subject](docs/RbacV1Subject.md) + - [ResourceV1ResourceClaim](docs/ResourceV1ResourceClaim.md) - [StorageV1TokenRequest](docs/StorageV1TokenRequest.md) - [V1APIGroup](docs/V1APIGroup.md) - [V1APIGroupList](docs/V1APIGroupList.md) @@ -986,6 +1004,8 @@ Class | Method | HTTP request | Description - [V1AWSElasticBlockStoreVolumeSource](docs/V1AWSElasticBlockStoreVolumeSource.md) - [V1Affinity](docs/V1Affinity.md) - [V1AggregationRule](docs/V1AggregationRule.md) + - [V1AllocatedDeviceStatus](docs/V1AllocatedDeviceStatus.md) + - [V1AllocationResult](docs/V1AllocationResult.md) - [V1AppArmorProfile](docs/V1AppArmorProfile.md) - [V1AttachedVolume](docs/V1AttachedVolume.md) - [V1AuditAnnotation](docs/V1AuditAnnotation.md) @@ -994,6 +1014,7 @@ Class | Method | HTTP request | Description - [V1AzureFileVolumeSource](docs/V1AzureFileVolumeSource.md) - [V1Binding](docs/V1Binding.md) - [V1BoundObjectReference](docs/V1BoundObjectReference.md) + - [V1CELDeviceSelector](docs/V1CELDeviceSelector.md) - [V1CSIDriver](docs/V1CSIDriver.md) - [V1CSIDriverList](docs/V1CSIDriverList.md) - [V1CSIDriverSpec](docs/V1CSIDriverSpec.md) @@ -1006,6 +1027,9 @@ Class | Method | HTTP request | Description - [V1CSIStorageCapacityList](docs/V1CSIStorageCapacityList.md) - [V1CSIVolumeSource](docs/V1CSIVolumeSource.md) - [V1Capabilities](docs/V1Capabilities.md) + - [V1CapacityRequestPolicy](docs/V1CapacityRequestPolicy.md) + - [V1CapacityRequestPolicyRange](docs/V1CapacityRequestPolicyRange.md) + - [V1CapacityRequirements](docs/V1CapacityRequirements.md) - [V1CephFSPersistentVolumeSource](docs/V1CephFSPersistentVolumeSource.md) - [V1CephFSVolumeSource](docs/V1CephFSVolumeSource.md) - [V1CertificateSigningRequest](docs/V1CertificateSigningRequest.md) @@ -1033,9 +1057,12 @@ Class | Method | HTTP request | Description - [V1ConfigMapProjection](docs/V1ConfigMapProjection.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1Container](docs/V1Container.md) + - [V1ContainerExtendedResourceRequest](docs/V1ContainerExtendedResourceRequest.md) - [V1ContainerImage](docs/V1ContainerImage.md) - [V1ContainerPort](docs/V1ContainerPort.md) - [V1ContainerResizePolicy](docs/V1ContainerResizePolicy.md) + - [V1ContainerRestartRule](docs/V1ContainerRestartRule.md) + - [V1ContainerRestartRuleOnExitCodes](docs/V1ContainerRestartRuleOnExitCodes.md) - [V1ContainerState](docs/V1ContainerState.md) - [V1ContainerStateRunning](docs/V1ContainerStateRunning.md) - [V1ContainerStateTerminated](docs/V1ContainerStateTerminated.md) @@ -1044,6 +1071,8 @@ Class | Method | HTTP request | Description - [V1ContainerUser](docs/V1ContainerUser.md) - [V1ControllerRevision](docs/V1ControllerRevision.md) - [V1ControllerRevisionList](docs/V1ControllerRevisionList.md) + - [V1Counter](docs/V1Counter.md) + - [V1CounterSet](docs/V1CounterSet.md) - [V1CronJob](docs/V1CronJob.md) - [V1CronJobList](docs/V1CronJobList.md) - [V1CronJobSpec](docs/V1CronJobSpec.md) @@ -1075,6 +1104,25 @@ Class | Method | HTTP request | Description - [V1DeploymentSpec](docs/V1DeploymentSpec.md) - [V1DeploymentStatus](docs/V1DeploymentStatus.md) - [V1DeploymentStrategy](docs/V1DeploymentStrategy.md) + - [V1Device](docs/V1Device.md) + - [V1DeviceAllocationConfiguration](docs/V1DeviceAllocationConfiguration.md) + - [V1DeviceAllocationResult](docs/V1DeviceAllocationResult.md) + - [V1DeviceAttribute](docs/V1DeviceAttribute.md) + - [V1DeviceCapacity](docs/V1DeviceCapacity.md) + - [V1DeviceClaim](docs/V1DeviceClaim.md) + - [V1DeviceClaimConfiguration](docs/V1DeviceClaimConfiguration.md) + - [V1DeviceClass](docs/V1DeviceClass.md) + - [V1DeviceClassConfiguration](docs/V1DeviceClassConfiguration.md) + - [V1DeviceClassList](docs/V1DeviceClassList.md) + - [V1DeviceClassSpec](docs/V1DeviceClassSpec.md) + - [V1DeviceConstraint](docs/V1DeviceConstraint.md) + - [V1DeviceCounterConsumption](docs/V1DeviceCounterConsumption.md) + - [V1DeviceRequest](docs/V1DeviceRequest.md) + - [V1DeviceRequestAllocationResult](docs/V1DeviceRequestAllocationResult.md) + - [V1DeviceSelector](docs/V1DeviceSelector.md) + - [V1DeviceSubRequest](docs/V1DeviceSubRequest.md) + - [V1DeviceTaint](docs/V1DeviceTaint.md) + - [V1DeviceToleration](docs/V1DeviceToleration.md) - [V1DownwardAPIProjection](docs/V1DownwardAPIProjection.md) - [V1DownwardAPIVolumeFile](docs/V1DownwardAPIVolumeFile.md) - [V1DownwardAPIVolumeSource](docs/V1DownwardAPIVolumeSource.md) @@ -1095,6 +1143,7 @@ Class | Method | HTTP request | Description - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) - [V1EventSource](docs/V1EventSource.md) - [V1Eviction](docs/V1Eviction.md) + - [V1ExactDeviceRequest](docs/V1ExactDeviceRequest.md) - [V1ExecAction](docs/V1ExecAction.md) - [V1ExemptPriorityLevelConfiguration](docs/V1ExemptPriorityLevelConfiguration.md) - [V1ExpressionWarning](docs/V1ExpressionWarning.md) @@ -1102,6 +1151,7 @@ Class | Method | HTTP request | Description - [V1FCVolumeSource](docs/V1FCVolumeSource.md) - [V1FieldSelectorAttributes](docs/V1FieldSelectorAttributes.md) - [V1FieldSelectorRequirement](docs/V1FieldSelectorRequirement.md) + - [V1FileKeySelector](docs/V1FileKeySelector.md) - [V1FlexPersistentVolumeSource](docs/V1FlexPersistentVolumeSource.md) - [V1FlexVolumeSource](docs/V1FlexVolumeSource.md) - [V1FlockerVolumeSource](docs/V1FlockerVolumeSource.md) @@ -1196,6 +1246,7 @@ Class | Method | HTTP request | Description - [V1NamespaceList](docs/V1NamespaceList.md) - [V1NamespaceSpec](docs/V1NamespaceSpec.md) - [V1NamespaceStatus](docs/V1NamespaceStatus.md) + - [V1NetworkDeviceData](docs/V1NetworkDeviceData.md) - [V1NetworkPolicy](docs/V1NetworkPolicy.md) - [V1NetworkPolicyEgressRule](docs/V1NetworkPolicyEgressRule.md) - [V1NetworkPolicyIngressRule](docs/V1NetworkPolicyIngressRule.md) @@ -1227,6 +1278,7 @@ Class | Method | HTTP request | Description - [V1ObjectFieldSelector](docs/V1ObjectFieldSelector.md) - [V1ObjectMeta](docs/V1ObjectMeta.md) - [V1ObjectReference](docs/V1ObjectReference.md) + - [V1OpaqueDeviceConfiguration](docs/V1OpaqueDeviceConfiguration.md) - [V1Overhead](docs/V1Overhead.md) - [V1OwnerReference](docs/V1OwnerReference.md) - [V1ParamKind](docs/V1ParamKind.md) @@ -1248,6 +1300,7 @@ Class | Method | HTTP request | Description - [V1PodAffinity](docs/V1PodAffinity.md) - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) - [V1PodAntiAffinity](docs/V1PodAntiAffinity.md) + - [V1PodCertificateProjection](docs/V1PodCertificateProjection.md) - [V1PodCondition](docs/V1PodCondition.md) - [V1PodDNSConfig](docs/V1PodDNSConfig.md) - [V1PodDNSConfigOption](docs/V1PodDNSConfigOption.md) @@ -1255,6 +1308,7 @@ Class | Method | HTTP request | Description - [V1PodDisruptionBudgetList](docs/V1PodDisruptionBudgetList.md) - [V1PodDisruptionBudgetSpec](docs/V1PodDisruptionBudgetSpec.md) - [V1PodDisruptionBudgetStatus](docs/V1PodDisruptionBudgetStatus.md) + - [V1PodExtendedResourceClaimStatus](docs/V1PodExtendedResourceClaimStatus.md) - [V1PodFailurePolicy](docs/V1PodFailurePolicy.md) - [V1PodFailurePolicyOnExitCodesRequirement](docs/V1PodFailurePolicyOnExitCodesRequirement.md) - [V1PodFailurePolicyOnPodConditionsPattern](docs/V1PodFailurePolicyOnPodConditionsPattern.md) @@ -1303,16 +1357,26 @@ Class | Method | HTTP request | Description - [V1ReplicationControllerSpec](docs/V1ReplicationControllerSpec.md) - [V1ReplicationControllerStatus](docs/V1ReplicationControllerStatus.md) - [V1ResourceAttributes](docs/V1ResourceAttributes.md) - - [V1ResourceClaim](docs/V1ResourceClaim.md) + - [V1ResourceClaimConsumerReference](docs/V1ResourceClaimConsumerReference.md) + - [V1ResourceClaimList](docs/V1ResourceClaimList.md) + - [V1ResourceClaimSpec](docs/V1ResourceClaimSpec.md) + - [V1ResourceClaimStatus](docs/V1ResourceClaimStatus.md) + - [V1ResourceClaimTemplate](docs/V1ResourceClaimTemplate.md) + - [V1ResourceClaimTemplateList](docs/V1ResourceClaimTemplateList.md) + - [V1ResourceClaimTemplateSpec](docs/V1ResourceClaimTemplateSpec.md) - [V1ResourceFieldSelector](docs/V1ResourceFieldSelector.md) - [V1ResourceHealth](docs/V1ResourceHealth.md) - [V1ResourcePolicyRule](docs/V1ResourcePolicyRule.md) + - [V1ResourcePool](docs/V1ResourcePool.md) - [V1ResourceQuota](docs/V1ResourceQuota.md) - [V1ResourceQuotaList](docs/V1ResourceQuotaList.md) - [V1ResourceQuotaSpec](docs/V1ResourceQuotaSpec.md) - [V1ResourceQuotaStatus](docs/V1ResourceQuotaStatus.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1ResourceRule](docs/V1ResourceRule.md) + - [V1ResourceSlice](docs/V1ResourceSlice.md) + - [V1ResourceSliceList](docs/V1ResourceSliceList.md) + - [V1ResourceSliceSpec](docs/V1ResourceSliceSpec.md) - [V1ResourceStatus](docs/V1ResourceStatus.md) - [V1Role](docs/V1Role.md) - [V1RoleBinding](docs/V1RoleBinding.md) @@ -1425,6 +1489,8 @@ Class | Method | HTTP request | Description - [V1VolumeAttachmentSource](docs/V1VolumeAttachmentSource.md) - [V1VolumeAttachmentSpec](docs/V1VolumeAttachmentSpec.md) - [V1VolumeAttachmentStatus](docs/V1VolumeAttachmentStatus.md) + - [V1VolumeAttributesClass](docs/V1VolumeAttributesClass.md) + - [V1VolumeAttributesClassList](docs/V1VolumeAttributesClassList.md) - [V1VolumeDevice](docs/V1VolumeDevice.md) - [V1VolumeError](docs/V1VolumeError.md) - [V1VolumeMount](docs/V1VolumeMount.md) @@ -1457,6 +1523,10 @@ Class | Method | HTTP request | Description - [V1alpha1NamedRuleWithOperations](docs/V1alpha1NamedRuleWithOperations.md) - [V1alpha1ParamKind](docs/V1alpha1ParamKind.md) - [V1alpha1ParamRef](docs/V1alpha1ParamRef.md) + - [V1alpha1PodCertificateRequest](docs/V1alpha1PodCertificateRequest.md) + - [V1alpha1PodCertificateRequestList](docs/V1alpha1PodCertificateRequestList.md) + - [V1alpha1PodCertificateRequestSpec](docs/V1alpha1PodCertificateRequestSpec.md) + - [V1alpha1PodCertificateRequestStatus](docs/V1alpha1PodCertificateRequestStatus.md) - [V1alpha1ServerStorageVersion](docs/V1alpha1ServerStorageVersion.md) - [V1alpha1StorageVersion](docs/V1alpha1StorageVersion.md) - [V1alpha1StorageVersionCondition](docs/V1alpha1StorageVersionCondition.md) @@ -1472,53 +1542,21 @@ Class | Method | HTTP request | Description - [V1alpha2LeaseCandidate](docs/V1alpha2LeaseCandidate.md) - [V1alpha2LeaseCandidateList](docs/V1alpha2LeaseCandidateList.md) - [V1alpha2LeaseCandidateSpec](docs/V1alpha2LeaseCandidateSpec.md) - - [V1alpha3AllocatedDeviceStatus](docs/V1alpha3AllocatedDeviceStatus.md) - - [V1alpha3AllocationResult](docs/V1alpha3AllocationResult.md) - - [V1alpha3BasicDevice](docs/V1alpha3BasicDevice.md) - [V1alpha3CELDeviceSelector](docs/V1alpha3CELDeviceSelector.md) - - [V1alpha3Counter](docs/V1alpha3Counter.md) - - [V1alpha3CounterSet](docs/V1alpha3CounterSet.md) - - [V1alpha3Device](docs/V1alpha3Device.md) - - [V1alpha3DeviceAllocationConfiguration](docs/V1alpha3DeviceAllocationConfiguration.md) - - [V1alpha3DeviceAllocationResult](docs/V1alpha3DeviceAllocationResult.md) - - [V1alpha3DeviceAttribute](docs/V1alpha3DeviceAttribute.md) - - [V1alpha3DeviceClaim](docs/V1alpha3DeviceClaim.md) - - [V1alpha3DeviceClaimConfiguration](docs/V1alpha3DeviceClaimConfiguration.md) - - [V1alpha3DeviceClass](docs/V1alpha3DeviceClass.md) - - [V1alpha3DeviceClassConfiguration](docs/V1alpha3DeviceClassConfiguration.md) - - [V1alpha3DeviceClassList](docs/V1alpha3DeviceClassList.md) - - [V1alpha3DeviceClassSpec](docs/V1alpha3DeviceClassSpec.md) - - [V1alpha3DeviceConstraint](docs/V1alpha3DeviceConstraint.md) - - [V1alpha3DeviceCounterConsumption](docs/V1alpha3DeviceCounterConsumption.md) - - [V1alpha3DeviceRequest](docs/V1alpha3DeviceRequest.md) - - [V1alpha3DeviceRequestAllocationResult](docs/V1alpha3DeviceRequestAllocationResult.md) - [V1alpha3DeviceSelector](docs/V1alpha3DeviceSelector.md) - - [V1alpha3DeviceSubRequest](docs/V1alpha3DeviceSubRequest.md) - [V1alpha3DeviceTaint](docs/V1alpha3DeviceTaint.md) - [V1alpha3DeviceTaintRule](docs/V1alpha3DeviceTaintRule.md) - [V1alpha3DeviceTaintRuleList](docs/V1alpha3DeviceTaintRuleList.md) - [V1alpha3DeviceTaintRuleSpec](docs/V1alpha3DeviceTaintRuleSpec.md) - [V1alpha3DeviceTaintSelector](docs/V1alpha3DeviceTaintSelector.md) - - [V1alpha3DeviceToleration](docs/V1alpha3DeviceToleration.md) - - [V1alpha3NetworkDeviceData](docs/V1alpha3NetworkDeviceData.md) - - [V1alpha3OpaqueDeviceConfiguration](docs/V1alpha3OpaqueDeviceConfiguration.md) - - [V1alpha3ResourceClaim](docs/V1alpha3ResourceClaim.md) - - [V1alpha3ResourceClaimConsumerReference](docs/V1alpha3ResourceClaimConsumerReference.md) - - [V1alpha3ResourceClaimList](docs/V1alpha3ResourceClaimList.md) - - [V1alpha3ResourceClaimSpec](docs/V1alpha3ResourceClaimSpec.md) - - [V1alpha3ResourceClaimStatus](docs/V1alpha3ResourceClaimStatus.md) - - [V1alpha3ResourceClaimTemplate](docs/V1alpha3ResourceClaimTemplate.md) - - [V1alpha3ResourceClaimTemplateList](docs/V1alpha3ResourceClaimTemplateList.md) - - [V1alpha3ResourceClaimTemplateSpec](docs/V1alpha3ResourceClaimTemplateSpec.md) - - [V1alpha3ResourcePool](docs/V1alpha3ResourcePool.md) - - [V1alpha3ResourceSlice](docs/V1alpha3ResourceSlice.md) - - [V1alpha3ResourceSliceList](docs/V1alpha3ResourceSliceList.md) - - [V1alpha3ResourceSliceSpec](docs/V1alpha3ResourceSliceSpec.md) - [V1beta1AllocatedDeviceStatus](docs/V1beta1AllocatedDeviceStatus.md) - [V1beta1AllocationResult](docs/V1beta1AllocationResult.md) - - [V1beta1AuditAnnotation](docs/V1beta1AuditAnnotation.md) + - [V1beta1ApplyConfiguration](docs/V1beta1ApplyConfiguration.md) - [V1beta1BasicDevice](docs/V1beta1BasicDevice.md) - [V1beta1CELDeviceSelector](docs/V1beta1CELDeviceSelector.md) + - [V1beta1CapacityRequestPolicy](docs/V1beta1CapacityRequestPolicy.md) + - [V1beta1CapacityRequestPolicyRange](docs/V1beta1CapacityRequestPolicyRange.md) + - [V1beta1CapacityRequirements](docs/V1beta1CapacityRequirements.md) - [V1beta1ClusterTrustBundle](docs/V1beta1ClusterTrustBundle.md) - [V1beta1ClusterTrustBundleList](docs/V1beta1ClusterTrustBundleList.md) - [V1beta1ClusterTrustBundleSpec](docs/V1beta1ClusterTrustBundleSpec.md) @@ -1543,15 +1581,22 @@ Class | Method | HTTP request | Description - [V1beta1DeviceSubRequest](docs/V1beta1DeviceSubRequest.md) - [V1beta1DeviceTaint](docs/V1beta1DeviceTaint.md) - [V1beta1DeviceToleration](docs/V1beta1DeviceToleration.md) - - [V1beta1ExpressionWarning](docs/V1beta1ExpressionWarning.md) - [V1beta1IPAddress](docs/V1beta1IPAddress.md) - [V1beta1IPAddressList](docs/V1beta1IPAddressList.md) - [V1beta1IPAddressSpec](docs/V1beta1IPAddressSpec.md) + - [V1beta1JSONPatch](docs/V1beta1JSONPatch.md) - [V1beta1LeaseCandidate](docs/V1beta1LeaseCandidate.md) - [V1beta1LeaseCandidateList](docs/V1beta1LeaseCandidateList.md) - [V1beta1LeaseCandidateSpec](docs/V1beta1LeaseCandidateSpec.md) - [V1beta1MatchCondition](docs/V1beta1MatchCondition.md) - [V1beta1MatchResources](docs/V1beta1MatchResources.md) + - [V1beta1MutatingAdmissionPolicy](docs/V1beta1MutatingAdmissionPolicy.md) + - [V1beta1MutatingAdmissionPolicyBinding](docs/V1beta1MutatingAdmissionPolicyBinding.md) + - [V1beta1MutatingAdmissionPolicyBindingList](docs/V1beta1MutatingAdmissionPolicyBindingList.md) + - [V1beta1MutatingAdmissionPolicyBindingSpec](docs/V1beta1MutatingAdmissionPolicyBindingSpec.md) + - [V1beta1MutatingAdmissionPolicyList](docs/V1beta1MutatingAdmissionPolicyList.md) + - [V1beta1MutatingAdmissionPolicySpec](docs/V1beta1MutatingAdmissionPolicySpec.md) + - [V1beta1Mutation](docs/V1beta1Mutation.md) - [V1beta1NamedRuleWithOperations](docs/V1beta1NamedRuleWithOperations.md) - [V1beta1NetworkDeviceData](docs/V1beta1NetworkDeviceData.md) - [V1beta1OpaqueDeviceConfiguration](docs/V1beta1OpaqueDeviceConfiguration.md) @@ -1574,21 +1619,15 @@ Class | Method | HTTP request | Description - [V1beta1ServiceCIDRList](docs/V1beta1ServiceCIDRList.md) - [V1beta1ServiceCIDRSpec](docs/V1beta1ServiceCIDRSpec.md) - [V1beta1ServiceCIDRStatus](docs/V1beta1ServiceCIDRStatus.md) - - [V1beta1TypeChecking](docs/V1beta1TypeChecking.md) - - [V1beta1ValidatingAdmissionPolicy](docs/V1beta1ValidatingAdmissionPolicy.md) - - [V1beta1ValidatingAdmissionPolicyBinding](docs/V1beta1ValidatingAdmissionPolicyBinding.md) - - [V1beta1ValidatingAdmissionPolicyBindingList](docs/V1beta1ValidatingAdmissionPolicyBindingList.md) - - [V1beta1ValidatingAdmissionPolicyBindingSpec](docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md) - - [V1beta1ValidatingAdmissionPolicyList](docs/V1beta1ValidatingAdmissionPolicyList.md) - - [V1beta1ValidatingAdmissionPolicySpec](docs/V1beta1ValidatingAdmissionPolicySpec.md) - - [V1beta1ValidatingAdmissionPolicyStatus](docs/V1beta1ValidatingAdmissionPolicyStatus.md) - - [V1beta1Validation](docs/V1beta1Validation.md) - [V1beta1Variable](docs/V1beta1Variable.md) - [V1beta1VolumeAttributesClass](docs/V1beta1VolumeAttributesClass.md) - [V1beta1VolumeAttributesClassList](docs/V1beta1VolumeAttributesClassList.md) - [V1beta2AllocatedDeviceStatus](docs/V1beta2AllocatedDeviceStatus.md) - [V1beta2AllocationResult](docs/V1beta2AllocationResult.md) - [V1beta2CELDeviceSelector](docs/V1beta2CELDeviceSelector.md) + - [V1beta2CapacityRequestPolicy](docs/V1beta2CapacityRequestPolicy.md) + - [V1beta2CapacityRequestPolicyRange](docs/V1beta2CapacityRequestPolicyRange.md) + - [V1beta2CapacityRequirements](docs/V1beta2CapacityRequirements.md) - [V1beta2Counter](docs/V1beta2Counter.md) - [V1beta2CounterSet](docs/V1beta2CounterSet.md) - [V1beta2Device](docs/V1beta2Device.md) diff --git a/kubernetes/__init__.py b/kubernetes/__init__.py index fa6e669ac..60676cd1f 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__ = "33.0.0+snapshot" +__version__ = "34.0.0+snapshot" from . import client from . import config diff --git a/kubernetes/client/__init__.py b/kubernetes/client/__init__.py index 1710855c9..238c018d3 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -__version__ = "33.0.0+snapshot" +__version__ = "34.0.0+snapshot" # import apis into sdk package from kubernetes.client.api.well_known_api import WellKnownApi @@ -69,6 +69,7 @@ from kubernetes.client.api.rbac_authorization_api import RbacAuthorizationApi from kubernetes.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api from kubernetes.client.api.resource_api import ResourceApi +from kubernetes.client.api.resource_v1_api import ResourceV1Api from kubernetes.client.api.resource_v1alpha3_api import ResourceV1alpha3Api from kubernetes.client.api.resource_v1beta1_api import ResourceV1beta1Api from kubernetes.client.api.resource_v1beta2_api import ResourceV1beta2Api @@ -101,12 +102,14 @@ from kubernetes.client.models.core_v1_event import CoreV1Event from kubernetes.client.models.core_v1_event_list import CoreV1EventList from kubernetes.client.models.core_v1_event_series import CoreV1EventSeries +from kubernetes.client.models.core_v1_resource_claim import CoreV1ResourceClaim from kubernetes.client.models.discovery_v1_endpoint_port import DiscoveryV1EndpointPort from kubernetes.client.models.events_v1_event import EventsV1Event from kubernetes.client.models.events_v1_event_list import EventsV1EventList from kubernetes.client.models.events_v1_event_series import EventsV1EventSeries from kubernetes.client.models.flowcontrol_v1_subject import FlowcontrolV1Subject from kubernetes.client.models.rbac_v1_subject import RbacV1Subject +from kubernetes.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim from kubernetes.client.models.storage_v1_token_request import StorageV1TokenRequest from kubernetes.client.models.v1_api_group import V1APIGroup from kubernetes.client.models.v1_api_group_list import V1APIGroupList @@ -121,6 +124,8 @@ from kubernetes.client.models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource from kubernetes.client.models.v1_affinity import V1Affinity from kubernetes.client.models.v1_aggregation_rule import V1AggregationRule +from kubernetes.client.models.v1_allocated_device_status import V1AllocatedDeviceStatus +from kubernetes.client.models.v1_allocation_result import V1AllocationResult from kubernetes.client.models.v1_app_armor_profile import V1AppArmorProfile from kubernetes.client.models.v1_attached_volume import V1AttachedVolume from kubernetes.client.models.v1_audit_annotation import V1AuditAnnotation @@ -129,6 +134,7 @@ from kubernetes.client.models.v1_azure_file_volume_source import V1AzureFileVolumeSource from kubernetes.client.models.v1_binding import V1Binding from kubernetes.client.models.v1_bound_object_reference import V1BoundObjectReference +from kubernetes.client.models.v1_cel_device_selector import V1CELDeviceSelector from kubernetes.client.models.v1_csi_driver import V1CSIDriver from kubernetes.client.models.v1_csi_driver_list import V1CSIDriverList from kubernetes.client.models.v1_csi_driver_spec import V1CSIDriverSpec @@ -141,6 +147,9 @@ from kubernetes.client.models.v1_csi_storage_capacity_list import V1CSIStorageCapacityList from kubernetes.client.models.v1_csi_volume_source import V1CSIVolumeSource from kubernetes.client.models.v1_capabilities import V1Capabilities +from kubernetes.client.models.v1_capacity_request_policy import V1CapacityRequestPolicy +from kubernetes.client.models.v1_capacity_request_policy_range import V1CapacityRequestPolicyRange +from kubernetes.client.models.v1_capacity_requirements import V1CapacityRequirements from kubernetes.client.models.v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource from kubernetes.client.models.v1_ceph_fs_volume_source import V1CephFSVolumeSource from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest @@ -168,9 +177,12 @@ from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection from kubernetes.client.models.v1_config_map_volume_source import V1ConfigMapVolumeSource from kubernetes.client.models.v1_container import V1Container +from kubernetes.client.models.v1_container_extended_resource_request import V1ContainerExtendedResourceRequest from kubernetes.client.models.v1_container_image import V1ContainerImage from kubernetes.client.models.v1_container_port import V1ContainerPort from kubernetes.client.models.v1_container_resize_policy import V1ContainerResizePolicy +from kubernetes.client.models.v1_container_restart_rule import V1ContainerRestartRule +from kubernetes.client.models.v1_container_restart_rule_on_exit_codes import V1ContainerRestartRuleOnExitCodes from kubernetes.client.models.v1_container_state import V1ContainerState from kubernetes.client.models.v1_container_state_running import V1ContainerStateRunning from kubernetes.client.models.v1_container_state_terminated import V1ContainerStateTerminated @@ -179,6 +191,8 @@ from kubernetes.client.models.v1_container_user import V1ContainerUser from kubernetes.client.models.v1_controller_revision import V1ControllerRevision from kubernetes.client.models.v1_controller_revision_list import V1ControllerRevisionList +from kubernetes.client.models.v1_counter import V1Counter +from kubernetes.client.models.v1_counter_set import V1CounterSet from kubernetes.client.models.v1_cron_job import V1CronJob from kubernetes.client.models.v1_cron_job_list import V1CronJobList from kubernetes.client.models.v1_cron_job_spec import V1CronJobSpec @@ -210,6 +224,25 @@ from kubernetes.client.models.v1_deployment_spec import V1DeploymentSpec from kubernetes.client.models.v1_deployment_status import V1DeploymentStatus from kubernetes.client.models.v1_deployment_strategy import V1DeploymentStrategy +from kubernetes.client.models.v1_device import V1Device +from kubernetes.client.models.v1_device_allocation_configuration import V1DeviceAllocationConfiguration +from kubernetes.client.models.v1_device_allocation_result import V1DeviceAllocationResult +from kubernetes.client.models.v1_device_attribute import V1DeviceAttribute +from kubernetes.client.models.v1_device_capacity import V1DeviceCapacity +from kubernetes.client.models.v1_device_claim import V1DeviceClaim +from kubernetes.client.models.v1_device_claim_configuration import V1DeviceClaimConfiguration +from kubernetes.client.models.v1_device_class import V1DeviceClass +from kubernetes.client.models.v1_device_class_configuration import V1DeviceClassConfiguration +from kubernetes.client.models.v1_device_class_list import V1DeviceClassList +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_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_toleration import V1DeviceToleration from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile from kubernetes.client.models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource @@ -230,6 +263,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_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 from kubernetes.client.models.v1_expression_warning import V1ExpressionWarning @@ -237,6 +271,7 @@ from kubernetes.client.models.v1_fc_volume_source import V1FCVolumeSource from kubernetes.client.models.v1_field_selector_attributes import V1FieldSelectorAttributes from kubernetes.client.models.v1_field_selector_requirement import V1FieldSelectorRequirement +from kubernetes.client.models.v1_file_key_selector import V1FileKeySelector from kubernetes.client.models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource from kubernetes.client.models.v1_flex_volume_source import V1FlexVolumeSource from kubernetes.client.models.v1_flocker_volume_source import V1FlockerVolumeSource @@ -331,6 +366,7 @@ from kubernetes.client.models.v1_namespace_list import V1NamespaceList from kubernetes.client.models.v1_namespace_spec import V1NamespaceSpec from kubernetes.client.models.v1_namespace_status import V1NamespaceStatus +from kubernetes.client.models.v1_network_device_data import V1NetworkDeviceData from kubernetes.client.models.v1_network_policy import V1NetworkPolicy from kubernetes.client.models.v1_network_policy_egress_rule import V1NetworkPolicyEgressRule from kubernetes.client.models.v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule @@ -362,6 +398,7 @@ from kubernetes.client.models.v1_object_field_selector import V1ObjectFieldSelector from kubernetes.client.models.v1_object_meta import V1ObjectMeta from kubernetes.client.models.v1_object_reference import V1ObjectReference +from kubernetes.client.models.v1_opaque_device_configuration import V1OpaqueDeviceConfiguration from kubernetes.client.models.v1_overhead import V1Overhead from kubernetes.client.models.v1_owner_reference import V1OwnerReference from kubernetes.client.models.v1_param_kind import V1ParamKind @@ -383,6 +420,7 @@ from kubernetes.client.models.v1_pod_affinity import V1PodAffinity 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_condition import V1PodCondition from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption @@ -390,6 +428,7 @@ from kubernetes.client.models.v1_pod_disruption_budget_list import V1PodDisruptionBudgetList from kubernetes.client.models.v1_pod_disruption_budget_spec import V1PodDisruptionBudgetSpec from kubernetes.client.models.v1_pod_disruption_budget_status import V1PodDisruptionBudgetStatus +from kubernetes.client.models.v1_pod_extended_resource_claim_status import V1PodExtendedResourceClaimStatus from kubernetes.client.models.v1_pod_failure_policy import V1PodFailurePolicy from kubernetes.client.models.v1_pod_failure_policy_on_exit_codes_requirement import V1PodFailurePolicyOnExitCodesRequirement from kubernetes.client.models.v1_pod_failure_policy_on_pod_conditions_pattern import V1PodFailurePolicyOnPodConditionsPattern @@ -438,16 +477,26 @@ from kubernetes.client.models.v1_replication_controller_spec import V1ReplicationControllerSpec from kubernetes.client.models.v1_replication_controller_status import V1ReplicationControllerStatus from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes -from kubernetes.client.models.v1_resource_claim import V1ResourceClaim +from kubernetes.client.models.v1_resource_claim_consumer_reference import V1ResourceClaimConsumerReference +from kubernetes.client.models.v1_resource_claim_list import V1ResourceClaimList +from kubernetes.client.models.v1_resource_claim_spec import V1ResourceClaimSpec +from kubernetes.client.models.v1_resource_claim_status import V1ResourceClaimStatus +from kubernetes.client.models.v1_resource_claim_template import V1ResourceClaimTemplate +from kubernetes.client.models.v1_resource_claim_template_list import V1ResourceClaimTemplateList +from kubernetes.client.models.v1_resource_claim_template_spec import V1ResourceClaimTemplateSpec from kubernetes.client.models.v1_resource_field_selector import V1ResourceFieldSelector from kubernetes.client.models.v1_resource_health import V1ResourceHealth from kubernetes.client.models.v1_resource_policy_rule import V1ResourcePolicyRule +from kubernetes.client.models.v1_resource_pool import V1ResourcePool from kubernetes.client.models.v1_resource_quota import V1ResourceQuota from kubernetes.client.models.v1_resource_quota_list import V1ResourceQuotaList from kubernetes.client.models.v1_resource_quota_spec import V1ResourceQuotaSpec from kubernetes.client.models.v1_resource_quota_status import V1ResourceQuotaStatus from kubernetes.client.models.v1_resource_requirements import V1ResourceRequirements from kubernetes.client.models.v1_resource_rule import V1ResourceRule +from kubernetes.client.models.v1_resource_slice import V1ResourceSlice +from kubernetes.client.models.v1_resource_slice_list import V1ResourceSliceList +from kubernetes.client.models.v1_resource_slice_spec import V1ResourceSliceSpec from kubernetes.client.models.v1_resource_status import V1ResourceStatus from kubernetes.client.models.v1_role import V1Role from kubernetes.client.models.v1_role_binding import V1RoleBinding @@ -560,6 +609,8 @@ from kubernetes.client.models.v1_volume_attachment_source import V1VolumeAttachmentSource from kubernetes.client.models.v1_volume_attachment_spec import V1VolumeAttachmentSpec from kubernetes.client.models.v1_volume_attachment_status import V1VolumeAttachmentStatus +from kubernetes.client.models.v1_volume_attributes_class import V1VolumeAttributesClass +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_mount import V1VolumeMount @@ -592,6 +643,10 @@ 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_pod_certificate_request import V1alpha1PodCertificateRequest +from kubernetes.client.models.v1alpha1_pod_certificate_request_list import V1alpha1PodCertificateRequestList +from kubernetes.client.models.v1alpha1_pod_certificate_request_spec import V1alpha1PodCertificateRequestSpec +from kubernetes.client.models.v1alpha1_pod_certificate_request_status import V1alpha1PodCertificateRequestStatus 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 @@ -607,53 +662,21 @@ 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.v1alpha3_allocated_device_status import V1alpha3AllocatedDeviceStatus -from kubernetes.client.models.v1alpha3_allocation_result import V1alpha3AllocationResult -from kubernetes.client.models.v1alpha3_basic_device import V1alpha3BasicDevice from kubernetes.client.models.v1alpha3_cel_device_selector import V1alpha3CELDeviceSelector -from kubernetes.client.models.v1alpha3_counter import V1alpha3Counter -from kubernetes.client.models.v1alpha3_counter_set import V1alpha3CounterSet -from kubernetes.client.models.v1alpha3_device import V1alpha3Device -from kubernetes.client.models.v1alpha3_device_allocation_configuration import V1alpha3DeviceAllocationConfiguration -from kubernetes.client.models.v1alpha3_device_allocation_result import V1alpha3DeviceAllocationResult -from kubernetes.client.models.v1alpha3_device_attribute import V1alpha3DeviceAttribute -from kubernetes.client.models.v1alpha3_device_claim import V1alpha3DeviceClaim -from kubernetes.client.models.v1alpha3_device_claim_configuration import V1alpha3DeviceClaimConfiguration -from kubernetes.client.models.v1alpha3_device_class import V1alpha3DeviceClass -from kubernetes.client.models.v1alpha3_device_class_configuration import V1alpha3DeviceClassConfiguration -from kubernetes.client.models.v1alpha3_device_class_list import V1alpha3DeviceClassList -from kubernetes.client.models.v1alpha3_device_class_spec import V1alpha3DeviceClassSpec -from kubernetes.client.models.v1alpha3_device_constraint import V1alpha3DeviceConstraint -from kubernetes.client.models.v1alpha3_device_counter_consumption import V1alpha3DeviceCounterConsumption -from kubernetes.client.models.v1alpha3_device_request import V1alpha3DeviceRequest -from kubernetes.client.models.v1alpha3_device_request_allocation_result import V1alpha3DeviceRequestAllocationResult from kubernetes.client.models.v1alpha3_device_selector import V1alpha3DeviceSelector -from kubernetes.client.models.v1alpha3_device_sub_request import V1alpha3DeviceSubRequest 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_selector import V1alpha3DeviceTaintSelector -from kubernetes.client.models.v1alpha3_device_toleration import V1alpha3DeviceToleration -from kubernetes.client.models.v1alpha3_network_device_data import V1alpha3NetworkDeviceData -from kubernetes.client.models.v1alpha3_opaque_device_configuration import V1alpha3OpaqueDeviceConfiguration -from kubernetes.client.models.v1alpha3_resource_claim import V1alpha3ResourceClaim -from kubernetes.client.models.v1alpha3_resource_claim_consumer_reference import V1alpha3ResourceClaimConsumerReference -from kubernetes.client.models.v1alpha3_resource_claim_list import V1alpha3ResourceClaimList -from kubernetes.client.models.v1alpha3_resource_claim_spec import V1alpha3ResourceClaimSpec -from kubernetes.client.models.v1alpha3_resource_claim_status import V1alpha3ResourceClaimStatus -from kubernetes.client.models.v1alpha3_resource_claim_template import V1alpha3ResourceClaimTemplate -from kubernetes.client.models.v1alpha3_resource_claim_template_list import V1alpha3ResourceClaimTemplateList -from kubernetes.client.models.v1alpha3_resource_claim_template_spec import V1alpha3ResourceClaimTemplateSpec -from kubernetes.client.models.v1alpha3_resource_pool import V1alpha3ResourcePool -from kubernetes.client.models.v1alpha3_resource_slice import V1alpha3ResourceSlice -from kubernetes.client.models.v1alpha3_resource_slice_list import V1alpha3ResourceSliceList -from kubernetes.client.models.v1alpha3_resource_slice_spec import V1alpha3ResourceSliceSpec from kubernetes.client.models.v1beta1_allocated_device_status import V1beta1AllocatedDeviceStatus from kubernetes.client.models.v1beta1_allocation_result import V1beta1AllocationResult -from kubernetes.client.models.v1beta1_audit_annotation import V1beta1AuditAnnotation +from kubernetes.client.models.v1beta1_apply_configuration import V1beta1ApplyConfiguration from kubernetes.client.models.v1beta1_basic_device import V1beta1BasicDevice from kubernetes.client.models.v1beta1_cel_device_selector import V1beta1CELDeviceSelector +from kubernetes.client.models.v1beta1_capacity_request_policy import V1beta1CapacityRequestPolicy +from kubernetes.client.models.v1beta1_capacity_request_policy_range import V1beta1CapacityRequestPolicyRange +from kubernetes.client.models.v1beta1_capacity_requirements import V1beta1CapacityRequirements 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 @@ -678,15 +701,22 @@ 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_expression_warning import V1beta1ExpressionWarning 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_json_patch import V1beta1JSONPatch from kubernetes.client.models.v1beta1_lease_candidate import V1beta1LeaseCandidate from kubernetes.client.models.v1beta1_lease_candidate_list import V1beta1LeaseCandidateList from kubernetes.client.models.v1beta1_lease_candidate_spec import V1beta1LeaseCandidateSpec from kubernetes.client.models.v1beta1_match_condition import V1beta1MatchCondition from kubernetes.client.models.v1beta1_match_resources import V1beta1MatchResources +from kubernetes.client.models.v1beta1_mutating_admission_policy import V1beta1MutatingAdmissionPolicy +from kubernetes.client.models.v1beta1_mutating_admission_policy_binding import V1beta1MutatingAdmissionPolicyBinding +from kubernetes.client.models.v1beta1_mutating_admission_policy_binding_list import V1beta1MutatingAdmissionPolicyBindingList +from kubernetes.client.models.v1beta1_mutating_admission_policy_binding_spec import V1beta1MutatingAdmissionPolicyBindingSpec +from kubernetes.client.models.v1beta1_mutating_admission_policy_list import V1beta1MutatingAdmissionPolicyList +from kubernetes.client.models.v1beta1_mutating_admission_policy_spec import V1beta1MutatingAdmissionPolicySpec +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_opaque_device_configuration import V1beta1OpaqueDeviceConfiguration @@ -709,21 +739,15 @@ 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_type_checking import V1beta1TypeChecking -from kubernetes.client.models.v1beta1_validating_admission_policy import V1beta1ValidatingAdmissionPolicy -from kubernetes.client.models.v1beta1_validating_admission_policy_binding import V1beta1ValidatingAdmissionPolicyBinding -from kubernetes.client.models.v1beta1_validating_admission_policy_binding_list import V1beta1ValidatingAdmissionPolicyBindingList -from kubernetes.client.models.v1beta1_validating_admission_policy_binding_spec import V1beta1ValidatingAdmissionPolicyBindingSpec -from kubernetes.client.models.v1beta1_validating_admission_policy_list import V1beta1ValidatingAdmissionPolicyList -from kubernetes.client.models.v1beta1_validating_admission_policy_spec import V1beta1ValidatingAdmissionPolicySpec -from kubernetes.client.models.v1beta1_validating_admission_policy_status import V1beta1ValidatingAdmissionPolicyStatus -from kubernetes.client.models.v1beta1_validation import V1beta1Validation 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.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 +from kubernetes.client.models.v1beta2_capacity_request_policy import V1beta2CapacityRequestPolicy +from kubernetes.client.models.v1beta2_capacity_request_policy_range import V1beta2CapacityRequestPolicyRange +from kubernetes.client.models.v1beta2_capacity_requirements import V1beta2CapacityRequirements from kubernetes.client.models.v1beta2_counter import V1beta2Counter from kubernetes.client.models.v1beta2_counter_set import V1beta2CounterSet from kubernetes.client.models.v1beta2_device import V1beta2Device diff --git a/kubernetes/client/api/__init__.py b/kubernetes/client/api/__init__.py index ac167ebff..7bc5ad882 100644 --- a/kubernetes/client/api/__init__.py +++ b/kubernetes/client/api/__init__.py @@ -55,6 +55,7 @@ from kubernetes.client.api.rbac_authorization_api import RbacAuthorizationApi from kubernetes.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api from kubernetes.client.api.resource_api import ResourceApi +from kubernetes.client.api.resource_v1_api import ResourceV1Api from kubernetes.client.api.resource_v1alpha3_api import ResourceV1alpha3Api from kubernetes.client.api.resource_v1beta1_api import ResourceV1beta1Api from kubernetes.client.api.resource_v1beta2_api import ResourceV1beta2Api diff --git a/kubernetes/client/api/admissionregistration_api.py b/kubernetes/client/api/admissionregistration_api.py index edfb06e15..2a0b527cb 100644 --- a/kubernetes/client/api/admissionregistration_api.py +++ b/kubernetes/client/api/admissionregistration_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/admissionregistration_v1_api.py b/kubernetes/client/api/admissionregistration_v1_api.py index be25b990e..abde655ea 100644 --- a/kubernetes/client/api/admissionregistration_v1_api.py +++ b/kubernetes/client/api/admissionregistration_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/admissionregistration_v1alpha1_api.py b/kubernetes/client/api/admissionregistration_v1alpha1_api.py index fbbddd11d..c95724be6 100644 --- a/kubernetes/client/api/admissionregistration_v1alpha1_api.py +++ b/kubernetes/client/api/admissionregistration_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/admissionregistration_v1beta1_api.py b/kubernetes/client/api/admissionregistration_v1beta1_api.py index 15e2c3bd3..9b14fbb54 100644 --- a/kubernetes/client/api/admissionregistration_v1beta1_api.py +++ b/kubernetes/client/api/admissionregistration_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -36,17 +36,17 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_validating_admission_policy(self, body, **kwargs): # noqa: E501 - """create_validating_admission_policy # noqa: E501 + def create_mutating_admission_policy(self, body, **kwargs): # noqa: E501 + """create_mutating_admission_policy # noqa: E501 - create a ValidatingAdmissionPolicy # noqa: E501 + create a MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_validating_admission_policy(body, async_req=True) + >>> thread = api.create_mutating_admission_policy(body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param V1beta1ValidatingAdmissionPolicy body: (required) + :param V1beta1MutatingAdmissionPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. @@ -58,24 +58,24 @@ def create_validating_admission_policy(self, body, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicy + :return: V1beta1MutatingAdmissionPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.create_validating_admission_policy_with_http_info(body, **kwargs) # noqa: E501 + return self.create_mutating_admission_policy_with_http_info(body, **kwargs) # noqa: E501 - def create_validating_admission_policy_with_http_info(self, body, **kwargs): # noqa: E501 - """create_validating_admission_policy # noqa: E501 + def create_mutating_admission_policy_with_http_info(self, body, **kwargs): # noqa: E501 + """create_mutating_admission_policy # noqa: E501 - create a ValidatingAdmissionPolicy # noqa: E501 + create a MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_validating_admission_policy_with_http_info(body, async_req=True) + >>> thread = api.create_mutating_admission_policy_with_http_info(body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param V1beta1ValidatingAdmissionPolicy body: (required) + :param V1beta1MutatingAdmissionPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. @@ -89,7 +89,7 @@ def create_validating_admission_policy_with_http_info(self, body, **kwargs): # number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1beta1MutatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -116,14 +116,14 @@ def create_validating_admission_policy_with_http_info(self, body, **kwargs): # if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method create_validating_admission_policy" % key + " to method create_mutating_admission_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `create_validating_admission_policy`") # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_mutating_admission_policy`") # noqa: E501 collection_formats = {} @@ -155,14 +155,14 @@ def create_validating_admission_policy_with_http_info(self, body, **kwargs): # auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies', 'POST', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501 + response_type='V1beta1MutatingAdmissionPolicy', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -170,17 +170,17 @@ def create_validating_admission_policy_with_http_info(self, body, **kwargs): # _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def create_validating_admission_policy_binding(self, body, **kwargs): # noqa: E501 - """create_validating_admission_policy_binding # noqa: E501 + def create_mutating_admission_policy_binding(self, body, **kwargs): # noqa: E501 + """create_mutating_admission_policy_binding # noqa: E501 - create a ValidatingAdmissionPolicyBinding # noqa: E501 + create a MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_validating_admission_policy_binding(body, async_req=True) + >>> thread = api.create_mutating_admission_policy_binding(body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param V1beta1ValidatingAdmissionPolicyBinding body: (required) + :param V1beta1MutatingAdmissionPolicyBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. @@ -192,24 +192,24 @@ def create_validating_admission_policy_binding(self, body, **kwargs): # noqa: E number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicyBinding + :return: V1beta1MutatingAdmissionPolicyBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.create_validating_admission_policy_binding_with_http_info(body, **kwargs) # noqa: E501 + return self.create_mutating_admission_policy_binding_with_http_info(body, **kwargs) # noqa: E501 - def create_validating_admission_policy_binding_with_http_info(self, body, **kwargs): # noqa: E501 - """create_validating_admission_policy_binding # noqa: E501 + def create_mutating_admission_policy_binding_with_http_info(self, body, **kwargs): # noqa: E501 + """create_mutating_admission_policy_binding # noqa: E501 - create a ValidatingAdmissionPolicyBinding # noqa: E501 + create a MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_validating_admission_policy_binding_with_http_info(body, async_req=True) + >>> thread = api.create_mutating_admission_policy_binding_with_http_info(body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param V1beta1ValidatingAdmissionPolicyBinding body: (required) + :param V1beta1MutatingAdmissionPolicyBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. @@ -223,7 +223,7 @@ def create_validating_admission_policy_binding_with_http_info(self, body, **kwar number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1beta1MutatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -250,14 +250,14 @@ def create_validating_admission_policy_binding_with_http_info(self, body, **kwar if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method create_validating_admission_policy_binding" % key + " to method create_mutating_admission_policy_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `create_validating_admission_policy_binding`") # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_mutating_admission_policy_binding`") # noqa: E501 collection_formats = {} @@ -289,14 +289,14 @@ def create_validating_admission_policy_binding_with_http_info(self, body, **kwar auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings', 'POST', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicyBinding', # noqa: E501 + response_type='V1beta1MutatingAdmissionPolicyBinding', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -304,13 +304,13 @@ def create_validating_admission_policy_binding_with_http_info(self, body, **kwar _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_validating_admission_policy(self, **kwargs): # noqa: E501 - """delete_collection_validating_admission_policy # noqa: E501 + def delete_collection_mutating_admission_policy(self, **kwargs): # noqa: E501 + """delete_collection_mutating_admission_policy # noqa: E501 - delete collection of ValidatingAdmissionPolicy # noqa: E501 + delete collection of MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_validating_admission_policy(async_req=True) + >>> thread = api.delete_collection_mutating_admission_policy(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -341,15 +341,15 @@ def delete_collection_validating_admission_policy(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.delete_collection_validating_admission_policy_with_http_info(**kwargs) # noqa: E501 + return self.delete_collection_mutating_admission_policy_with_http_info(**kwargs) # noqa: E501 - def delete_collection_validating_admission_policy_with_http_info(self, **kwargs): # noqa: E501 - """delete_collection_validating_admission_policy # noqa: E501 + def delete_collection_mutating_admission_policy_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_mutating_admission_policy # noqa: E501 - delete collection of ValidatingAdmissionPolicy # noqa: E501 + delete collection of MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_validating_admission_policy_with_http_info(async_req=True) + >>> thread = api.delete_collection_mutating_admission_policy_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -414,7 +414,7 @@ def delete_collection_validating_admission_policy_with_http_info(self, **kwargs) if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_validating_admission_policy" % key + " to method delete_collection_mutating_admission_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -469,7 +469,7 @@ def delete_collection_validating_admission_policy_with_http_info(self, **kwargs) auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies', 'DELETE', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies', 'DELETE', path_params, query_params, header_params, @@ -484,13 +484,13 @@ def delete_collection_validating_admission_policy_with_http_info(self, **kwargs) _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_validating_admission_policy_binding(self, **kwargs): # noqa: E501 - """delete_collection_validating_admission_policy_binding # noqa: E501 + def delete_collection_mutating_admission_policy_binding(self, **kwargs): # noqa: E501 + """delete_collection_mutating_admission_policy_binding # noqa: E501 - delete collection of ValidatingAdmissionPolicyBinding # noqa: E501 + delete collection of MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_validating_admission_policy_binding(async_req=True) + >>> thread = api.delete_collection_mutating_admission_policy_binding(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -521,15 +521,15 @@ def delete_collection_validating_admission_policy_binding(self, **kwargs): # no returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.delete_collection_validating_admission_policy_binding_with_http_info(**kwargs) # noqa: E501 + return self.delete_collection_mutating_admission_policy_binding_with_http_info(**kwargs) # noqa: E501 - def delete_collection_validating_admission_policy_binding_with_http_info(self, **kwargs): # noqa: E501 - """delete_collection_validating_admission_policy_binding # noqa: E501 + def delete_collection_mutating_admission_policy_binding_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_mutating_admission_policy_binding # noqa: E501 - delete collection of ValidatingAdmissionPolicyBinding # noqa: E501 + delete collection of MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_validating_admission_policy_binding_with_http_info(async_req=True) + >>> thread = api.delete_collection_mutating_admission_policy_binding_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -594,7 +594,7 @@ def delete_collection_validating_admission_policy_binding_with_http_info(self, * if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_validating_admission_policy_binding" % key + " to method delete_collection_mutating_admission_policy_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -649,7 +649,7 @@ def delete_collection_validating_admission_policy_binding_with_http_info(self, * auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings', 'DELETE', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings', 'DELETE', path_params, query_params, header_params, @@ -664,17 +664,17 @@ def delete_collection_validating_admission_policy_binding_with_http_info(self, * _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def delete_validating_admission_policy(self, name, **kwargs): # noqa: E501 - """delete_validating_admission_policy # noqa: E501 + def delete_mutating_admission_policy(self, name, **kwargs): # noqa: E501 + """delete_mutating_admission_policy # noqa: E501 - delete a ValidatingAdmissionPolicy # noqa: E501 + delete a MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_validating_admission_policy(name, async_req=True) + >>> thread = api.delete_mutating_admission_policy(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) + :param str name: name of the MutatingAdmissionPolicy (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int 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. @@ -694,19 +694,19 @@ def delete_validating_admission_policy(self, name, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.delete_validating_admission_policy_with_http_info(name, **kwargs) # noqa: E501 + return self.delete_mutating_admission_policy_with_http_info(name, **kwargs) # noqa: E501 - def delete_validating_admission_policy_with_http_info(self, name, **kwargs): # noqa: E501 - """delete_validating_admission_policy # noqa: E501 + def delete_mutating_admission_policy_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_mutating_admission_policy # noqa: E501 - delete a ValidatingAdmissionPolicy # noqa: E501 + delete a MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_validating_admission_policy_with_http_info(name, async_req=True) + >>> thread = api.delete_mutating_admission_policy_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) + :param str name: name of the MutatingAdmissionPolicy (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int 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. @@ -753,14 +753,14 @@ def delete_validating_admission_policy_with_http_info(self, name, **kwargs): # if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method delete_validating_admission_policy" % key + " to method delete_mutating_admission_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `delete_validating_admission_policy`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_mutating_admission_policy`") # noqa: E501 collection_formats = {} @@ -798,7 +798,7 @@ def delete_validating_admission_policy_with_http_info(self, name, **kwargs): # auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}', 'DELETE', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}', 'DELETE', path_params, query_params, header_params, @@ -813,17 +813,17 @@ def delete_validating_admission_policy_with_http_info(self, name, **kwargs): # _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def delete_validating_admission_policy_binding(self, name, **kwargs): # noqa: E501 - """delete_validating_admission_policy_binding # noqa: E501 + def delete_mutating_admission_policy_binding(self, name, **kwargs): # noqa: E501 + """delete_mutating_admission_policy_binding # noqa: E501 - delete a ValidatingAdmissionPolicyBinding # noqa: E501 + delete a MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_validating_admission_policy_binding(name, async_req=True) + >>> thread = api.delete_mutating_admission_policy_binding(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicyBinding (required) + :param str name: name of the MutatingAdmissionPolicyBinding (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int 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. @@ -843,19 +843,19 @@ def delete_validating_admission_policy_binding(self, name, **kwargs): # noqa: E returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.delete_validating_admission_policy_binding_with_http_info(name, **kwargs) # noqa: E501 + return self.delete_mutating_admission_policy_binding_with_http_info(name, **kwargs) # noqa: E501 - def delete_validating_admission_policy_binding_with_http_info(self, name, **kwargs): # noqa: E501 - """delete_validating_admission_policy_binding # noqa: E501 + def delete_mutating_admission_policy_binding_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_mutating_admission_policy_binding # noqa: E501 - delete a ValidatingAdmissionPolicyBinding # noqa: E501 + delete a MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_validating_admission_policy_binding_with_http_info(name, async_req=True) + >>> thread = api.delete_mutating_admission_policy_binding_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicyBinding (required) + :param str name: name of the MutatingAdmissionPolicyBinding (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int 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. @@ -902,14 +902,14 @@ def delete_validating_admission_policy_binding_with_http_info(self, name, **kwar if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method delete_validating_admission_policy_binding" % key + " to method delete_mutating_admission_policy_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `delete_validating_admission_policy_binding`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_mutating_admission_policy_binding`") # noqa: E501 collection_formats = {} @@ -947,7 +947,7 @@ def delete_validating_admission_policy_binding_with_http_info(self, name, **kwar auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}', 'DELETE', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}', 'DELETE', path_params, query_params, header_params, @@ -1067,13 +1067,13 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def list_validating_admission_policy(self, **kwargs): # noqa: E501 - """list_validating_admission_policy # noqa: E501 + def list_mutating_admission_policy(self, **kwargs): # noqa: E501 + """list_mutating_admission_policy # noqa: E501 - list or watch objects of kind ValidatingAdmissionPolicy # noqa: E501 + list or watch objects of kind MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_validating_admission_policy(async_req=True) + >>> thread = api.list_mutating_admission_policy(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -1095,20 +1095,20 @@ def list_validating_admission_policy(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicyList + :return: V1beta1MutatingAdmissionPolicyList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.list_validating_admission_policy_with_http_info(**kwargs) # noqa: E501 + return self.list_mutating_admission_policy_with_http_info(**kwargs) # noqa: E501 - def list_validating_admission_policy_with_http_info(self, **kwargs): # noqa: E501 - """list_validating_admission_policy # noqa: E501 + def list_mutating_admission_policy_with_http_info(self, **kwargs): # noqa: E501 + """list_mutating_admission_policy # noqa: E501 - list or watch objects of kind ValidatingAdmissionPolicy # noqa: E501 + list or watch objects of kind MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_validating_admission_policy_with_http_info(async_req=True) + >>> thread = api.list_mutating_admission_policy_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -1132,7 +1132,7 @@ def list_validating_admission_policy_with_http_info(self, **kwargs): # noqa: E5 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicyList, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1beta1MutatingAdmissionPolicyList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -1165,7 +1165,7 @@ def list_validating_admission_policy_with_http_info(self, **kwargs): # noqa: E5 if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method list_validating_admission_policy" % key + " to method list_mutating_admission_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -1212,14 +1212,14 @@ def list_validating_admission_policy_with_http_info(self, **kwargs): # noqa: E5 auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies', 'GET', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicyList', # noqa: E501 + response_type='V1beta1MutatingAdmissionPolicyList', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1227,13 +1227,13 @@ def list_validating_admission_policy_with_http_info(self, **kwargs): # noqa: E5 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def list_validating_admission_policy_binding(self, **kwargs): # noqa: E501 - """list_validating_admission_policy_binding # noqa: E501 + def list_mutating_admission_policy_binding(self, **kwargs): # noqa: E501 + """list_mutating_admission_policy_binding # noqa: E501 - list or watch objects of kind ValidatingAdmissionPolicyBinding # noqa: E501 + list or watch objects of kind MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_validating_admission_policy_binding(async_req=True) + >>> thread = api.list_mutating_admission_policy_binding(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -1255,20 +1255,20 @@ def list_validating_admission_policy_binding(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicyBindingList + :return: V1beta1MutatingAdmissionPolicyBindingList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.list_validating_admission_policy_binding_with_http_info(**kwargs) # noqa: E501 + return self.list_mutating_admission_policy_binding_with_http_info(**kwargs) # noqa: E501 - def list_validating_admission_policy_binding_with_http_info(self, **kwargs): # noqa: E501 - """list_validating_admission_policy_binding # noqa: E501 + def list_mutating_admission_policy_binding_with_http_info(self, **kwargs): # noqa: E501 + """list_mutating_admission_policy_binding # noqa: E501 - list or watch objects of kind ValidatingAdmissionPolicyBinding # noqa: E501 + list or watch objects of kind MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_validating_admission_policy_binding_with_http_info(async_req=True) + >>> thread = api.list_mutating_admission_policy_binding_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -1292,7 +1292,7 @@ def list_validating_admission_policy_binding_with_http_info(self, **kwargs): # number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicyBindingList, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1beta1MutatingAdmissionPolicyBindingList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -1325,7 +1325,7 @@ def list_validating_admission_policy_binding_with_http_info(self, **kwargs): # if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method list_validating_admission_policy_binding" % key + " to method list_mutating_admission_policy_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -1372,14 +1372,14 @@ def list_validating_admission_policy_binding_with_http_info(self, **kwargs): # auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings', 'GET', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicyBindingList', # noqa: E501 + response_type='V1beta1MutatingAdmissionPolicyBindingList', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1387,17 +1387,17 @@ def list_validating_admission_policy_binding_with_http_info(self, **kwargs): # _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def patch_validating_admission_policy(self, name, body, **kwargs): # noqa: E501 - """patch_validating_admission_policy # noqa: E501 + def patch_mutating_admission_policy(self, name, body, **kwargs): # noqa: E501 + """patch_mutating_admission_policy # noqa: E501 - partially update the specified ValidatingAdmissionPolicy # noqa: E501 + partially update the specified MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_validating_admission_policy(name, body, async_req=True) + >>> thread = api.patch_mutating_admission_policy(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) + :param str name: name of the MutatingAdmissionPolicy (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1411,24 +1411,24 @@ def patch_validating_admission_policy(self, name, body, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicy + :return: V1beta1MutatingAdmissionPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.patch_validating_admission_policy_with_http_info(name, body, **kwargs) # noqa: E501 + return self.patch_mutating_admission_policy_with_http_info(name, body, **kwargs) # noqa: E501 - def patch_validating_admission_policy_with_http_info(self, name, body, **kwargs): # noqa: E501 - """patch_validating_admission_policy # noqa: E501 + def patch_mutating_admission_policy_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_mutating_admission_policy # noqa: E501 - partially update the specified ValidatingAdmissionPolicy # noqa: E501 + partially update the specified MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_validating_admission_policy_with_http_info(name, body, async_req=True) + >>> thread = api.patch_mutating_admission_policy_with_http_info(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) + :param str name: name of the MutatingAdmissionPolicy (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1444,7 +1444,7 @@ def patch_validating_admission_policy_with_http_info(self, name, body, **kwargs) number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1beta1MutatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -1473,18 +1473,18 @@ def patch_validating_admission_policy_with_http_info(self, name, body, **kwargs) if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method patch_validating_admission_policy" % key + " to method patch_mutating_admission_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `patch_validating_admission_policy`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_mutating_admission_policy`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `patch_validating_admission_policy`") # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_mutating_admission_policy`") # noqa: E501 collection_formats = {} @@ -1524,14 +1524,14 @@ def patch_validating_admission_policy_with_http_info(self, name, body, **kwargs) auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}', 'PATCH', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501 + response_type='V1beta1MutatingAdmissionPolicy', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1539,17 +1539,17 @@ def patch_validating_admission_policy_with_http_info(self, name, body, **kwargs) _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def patch_validating_admission_policy_binding(self, name, body, **kwargs): # noqa: E501 - """patch_validating_admission_policy_binding # noqa: E501 + def patch_mutating_admission_policy_binding(self, name, body, **kwargs): # noqa: E501 + """patch_mutating_admission_policy_binding # noqa: E501 - partially update the specified ValidatingAdmissionPolicyBinding # noqa: E501 + partially update the specified MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_validating_admission_policy_binding(name, body, async_req=True) + >>> thread = api.patch_mutating_admission_policy_binding(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicyBinding (required) + :param str name: name of the MutatingAdmissionPolicyBinding (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1563,24 +1563,24 @@ def patch_validating_admission_policy_binding(self, name, body, **kwargs): # no number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicyBinding + :return: V1beta1MutatingAdmissionPolicyBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.patch_validating_admission_policy_binding_with_http_info(name, body, **kwargs) # noqa: E501 + return self.patch_mutating_admission_policy_binding_with_http_info(name, body, **kwargs) # noqa: E501 - def patch_validating_admission_policy_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 - """patch_validating_admission_policy_binding # noqa: E501 + def patch_mutating_admission_policy_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_mutating_admission_policy_binding # noqa: E501 - partially update the specified ValidatingAdmissionPolicyBinding # noqa: E501 + partially update the specified MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_validating_admission_policy_binding_with_http_info(name, body, async_req=True) + >>> thread = api.patch_mutating_admission_policy_binding_with_http_info(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicyBinding (required) + :param str name: name of the MutatingAdmissionPolicyBinding (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1596,7 +1596,7 @@ def patch_validating_admission_policy_binding_with_http_info(self, name, body, * number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1beta1MutatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -1625,18 +1625,18 @@ def patch_validating_admission_policy_binding_with_http_info(self, name, body, * if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method patch_validating_admission_policy_binding" % key + " to method patch_mutating_admission_policy_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `patch_validating_admission_policy_binding`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_mutating_admission_policy_binding`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `patch_validating_admission_policy_binding`") # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_mutating_admission_policy_binding`") # noqa: E501 collection_formats = {} @@ -1676,14 +1676,14 @@ def patch_validating_admission_policy_binding_with_http_info(self, name, body, * auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}', 'PATCH', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicyBinding', # noqa: E501 + response_type='V1beta1MutatingAdmissionPolicyBinding', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1691,169 +1691,17 @@ def patch_validating_admission_policy_binding_with_http_info(self, name, body, * _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def patch_validating_admission_policy_status(self, name, body, **kwargs): # noqa: E501 - """patch_validating_admission_policy_status # noqa: E501 + def read_mutating_admission_policy(self, name, **kwargs): # noqa: E501 + """read_mutating_admission_policy # noqa: E501 - partially update status of the specified ValidatingAdmissionPolicy # noqa: E501 + read the specified MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_validating_admission_policy_status(name, body, async_req=True) + >>> thread = api.read_mutating_admission_policy(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicy - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.patch_validating_admission_policy_status_with_http_info(name, body, **kwargs) # noqa: E501 - - def patch_validating_admission_policy_status_with_http_info(self, name, body, **kwargs): # noqa: E501 - """patch_validating_admission_policy_status # noqa: E501 - - partially update status of the specified ValidatingAdmissionPolicy # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_validating_admission_policy_status_with_http_info(name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation', - 'force' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_validating_admission_policy_status" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `patch_validating_admission_policy_status`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `patch_validating_admission_policy_status`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 - if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 - query_params.append(('force', local_var_params['force'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_validating_admission_policy(self, name, **kwargs): # noqa: E501 - """read_validating_admission_policy # noqa: E501 - - read the specified ValidatingAdmissionPolicy # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_validating_admission_policy(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) + :param str name: name of the MutatingAdmissionPolicy (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response @@ -1862,24 +1710,24 @@ def read_validating_admission_policy(self, name, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicy + :return: V1beta1MutatingAdmissionPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.read_validating_admission_policy_with_http_info(name, **kwargs) # noqa: E501 + return self.read_mutating_admission_policy_with_http_info(name, **kwargs) # noqa: E501 - def read_validating_admission_policy_with_http_info(self, name, **kwargs): # noqa: E501 - """read_validating_admission_policy # noqa: E501 + def read_mutating_admission_policy_with_http_info(self, name, **kwargs): # noqa: E501 + """read_mutating_admission_policy # noqa: E501 - read the specified ValidatingAdmissionPolicy # noqa: E501 + read the specified MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_validating_admission_policy_with_http_info(name, async_req=True) + >>> thread = api.read_mutating_admission_policy_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) + :param str name: name of the MutatingAdmissionPolicy (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param _return_http_data_only: response data without head status code and headers @@ -1890,7 +1738,7 @@ def read_validating_admission_policy_with_http_info(self, name, **kwargs): # no number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1beta1MutatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -1914,14 +1762,14 @@ def read_validating_admission_policy_with_http_info(self, name, **kwargs): # no if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method read_validating_admission_policy" % key + " to method read_mutating_admission_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `read_validating_admission_policy`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_mutating_admission_policy`") # noqa: E501 collection_formats = {} @@ -1947,14 +1795,14 @@ def read_validating_admission_policy_with_http_info(self, name, **kwargs): # no auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}', 'GET', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501 + response_type='V1beta1MutatingAdmissionPolicy', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1962,17 +1810,17 @@ def read_validating_admission_policy_with_http_info(self, name, **kwargs): # no _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def read_validating_admission_policy_binding(self, name, **kwargs): # noqa: E501 - """read_validating_admission_policy_binding # noqa: E501 + def read_mutating_admission_policy_binding(self, name, **kwargs): # noqa: E501 + """read_mutating_admission_policy_binding # noqa: E501 - read the specified ValidatingAdmissionPolicyBinding # noqa: E501 + read the specified MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_validating_admission_policy_binding(name, async_req=True) + >>> thread = api.read_mutating_admission_policy_binding(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicyBinding (required) + :param str name: name of the MutatingAdmissionPolicyBinding (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response @@ -1981,24 +1829,24 @@ def read_validating_admission_policy_binding(self, name, **kwargs): # noqa: E50 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicyBinding + :return: V1beta1MutatingAdmissionPolicyBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.read_validating_admission_policy_binding_with_http_info(name, **kwargs) # noqa: E501 + return self.read_mutating_admission_policy_binding_with_http_info(name, **kwargs) # noqa: E501 - def read_validating_admission_policy_binding_with_http_info(self, name, **kwargs): # noqa: E501 - """read_validating_admission_policy_binding # noqa: E501 + def read_mutating_admission_policy_binding_with_http_info(self, name, **kwargs): # noqa: E501 + """read_mutating_admission_policy_binding # noqa: E501 - read the specified ValidatingAdmissionPolicyBinding # noqa: E501 + read the specified MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_validating_admission_policy_binding_with_http_info(name, async_req=True) + >>> thread = api.read_mutating_admission_policy_binding_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicyBinding (required) + :param str name: name of the MutatingAdmissionPolicyBinding (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param _return_http_data_only: response data without head status code and headers @@ -2009,7 +1857,7 @@ def read_validating_admission_policy_binding_with_http_info(self, name, **kwargs number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1beta1MutatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -2033,14 +1881,14 @@ def read_validating_admission_policy_binding_with_http_info(self, name, **kwargs if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method read_validating_admission_policy_binding" % key + " to method read_mutating_admission_policy_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `read_validating_admission_policy_binding`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_mutating_admission_policy_binding`") # noqa: E501 collection_formats = {} @@ -2066,276 +1914,14 @@ def read_validating_admission_policy_binding_with_http_info(self, name, **kwargs auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicyBinding', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_validating_admission_policy_status(self, name, **kwargs): # noqa: E501 - """read_validating_admission_policy_status # noqa: E501 - - read status of the specified ValidatingAdmissionPolicy # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_validating_admission_policy_status(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicy - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.read_validating_admission_policy_status_with_http_info(name, **kwargs) # noqa: E501 - - def read_validating_admission_policy_status_with_http_info(self, name, **kwargs): # noqa: E501 - """read_validating_admission_policy_status # noqa: E501 - - read status of the specified ValidatingAdmissionPolicy # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_validating_admission_policy_status_with_http_info(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'pretty' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method read_validating_admission_policy_status" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `read_validating_admission_policy_status`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_validating_admission_policy(self, name, body, **kwargs): # noqa: E501 - """replace_validating_admission_policy # noqa: E501 - - replace the specified ValidatingAdmissionPolicy # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_validating_admission_policy(name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) - :param V1beta1ValidatingAdmissionPolicy body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicy - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.replace_validating_admission_policy_with_http_info(name, body, **kwargs) # noqa: E501 - - def replace_validating_admission_policy_with_http_info(self, name, body, **kwargs): # noqa: E501 - """replace_validating_admission_policy # noqa: E501 - - replace the specified ValidatingAdmissionPolicy # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_validating_admission_policy_with_http_info(name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) - :param V1beta1ValidatingAdmissionPolicy body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_validating_admission_policy" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `replace_validating_admission_policy`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `replace_validating_admission_policy`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}', 'PUT', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501 + response_type='V1beta1MutatingAdmissionPolicyBinding', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -2343,18 +1929,18 @@ def replace_validating_admission_policy_with_http_info(self, name, body, **kwarg _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def replace_validating_admission_policy_binding(self, name, body, **kwargs): # noqa: E501 - """replace_validating_admission_policy_binding # noqa: E501 + def replace_mutating_admission_policy(self, name, body, **kwargs): # noqa: E501 + """replace_mutating_admission_policy # noqa: E501 - replace the specified ValidatingAdmissionPolicyBinding # noqa: E501 + replace the specified MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_validating_admission_policy_binding(name, body, async_req=True) + >>> thread = api.replace_mutating_admission_policy(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicyBinding (required) - :param V1beta1ValidatingAdmissionPolicyBinding body: (required) + :param str name: name of the MutatingAdmissionPolicy (required) + :param V1beta1MutatingAdmissionPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. @@ -2366,25 +1952,25 @@ def replace_validating_admission_policy_binding(self, name, body, **kwargs): # number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicyBinding + :return: V1beta1MutatingAdmissionPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.replace_validating_admission_policy_binding_with_http_info(name, body, **kwargs) # noqa: E501 + return self.replace_mutating_admission_policy_with_http_info(name, body, **kwargs) # noqa: E501 - def replace_validating_admission_policy_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 - """replace_validating_admission_policy_binding # noqa: E501 + def replace_mutating_admission_policy_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_mutating_admission_policy # noqa: E501 - replace the specified ValidatingAdmissionPolicyBinding # noqa: E501 + replace the specified MutatingAdmissionPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_validating_admission_policy_binding_with_http_info(name, body, async_req=True) + >>> thread = api.replace_mutating_admission_policy_with_http_info(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicyBinding (required) - :param V1beta1ValidatingAdmissionPolicyBinding body: (required) + :param str name: name of the MutatingAdmissionPolicy (required) + :param V1beta1MutatingAdmissionPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. @@ -2398,7 +1984,7 @@ def replace_validating_admission_policy_binding_with_http_info(self, name, body, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1beta1MutatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -2426,18 +2012,18 @@ def replace_validating_admission_policy_binding_with_http_info(self, name, body, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method replace_validating_admission_policy_binding" % key + " to method replace_mutating_admission_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `replace_validating_admission_policy_binding`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_mutating_admission_policy`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `replace_validating_admission_policy_binding`") # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_mutating_admission_policy`") # noqa: E501 collection_formats = {} @@ -2471,14 +2057,14 @@ def replace_validating_admission_policy_binding_with_http_info(self, name, body, auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}', 'PUT', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicyBinding', # noqa: E501 + response_type='V1beta1MutatingAdmissionPolicy', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -2486,18 +2072,18 @@ def replace_validating_admission_policy_binding_with_http_info(self, name, body, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def replace_validating_admission_policy_status(self, name, body, **kwargs): # noqa: E501 - """replace_validating_admission_policy_status # noqa: E501 + def replace_mutating_admission_policy_binding(self, name, body, **kwargs): # noqa: E501 + """replace_mutating_admission_policy_binding # noqa: E501 - replace status of the specified ValidatingAdmissionPolicy # noqa: E501 + replace the specified MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_validating_admission_policy_status(name, body, async_req=True) + >>> thread = api.replace_mutating_admission_policy_binding(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) - :param V1beta1ValidatingAdmissionPolicy body: (required) + :param str name: name of the MutatingAdmissionPolicyBinding (required) + :param V1beta1MutatingAdmissionPolicyBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. @@ -2509,25 +2095,25 @@ def replace_validating_admission_policy_status(self, name, body, **kwargs): # n number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1beta1ValidatingAdmissionPolicy + :return: V1beta1MutatingAdmissionPolicyBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.replace_validating_admission_policy_status_with_http_info(name, body, **kwargs) # noqa: E501 + return self.replace_mutating_admission_policy_binding_with_http_info(name, body, **kwargs) # noqa: E501 - def replace_validating_admission_policy_status_with_http_info(self, name, body, **kwargs): # noqa: E501 - """replace_validating_admission_policy_status # noqa: E501 + def replace_mutating_admission_policy_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_mutating_admission_policy_binding # noqa: E501 - replace status of the specified ValidatingAdmissionPolicy # noqa: E501 + replace the specified MutatingAdmissionPolicyBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_validating_admission_policy_status_with_http_info(name, body, async_req=True) + >>> thread = api.replace_mutating_admission_policy_binding_with_http_info(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ValidatingAdmissionPolicy (required) - :param V1beta1ValidatingAdmissionPolicy body: (required) + :param str name: name of the MutatingAdmissionPolicyBinding (required) + :param V1beta1MutatingAdmissionPolicyBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. @@ -2541,7 +2127,7 @@ def replace_validating_admission_policy_status_with_http_info(self, name, body, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1beta1MutatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -2569,18 +2155,18 @@ def replace_validating_admission_policy_status_with_http_info(self, name, body, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method replace_validating_admission_policy_status" % key + " to method replace_mutating_admission_policy_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `replace_validating_admission_policy_status`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_mutating_admission_policy_binding`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `replace_validating_admission_policy_status`") # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_mutating_admission_policy_binding`") # noqa: E501 collection_formats = {} @@ -2614,14 +2200,14 @@ def replace_validating_admission_policy_status_with_http_info(self, name, body, auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status', 'PUT', + '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501 + response_type='V1beta1MutatingAdmissionPolicyBinding', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 diff --git a/kubernetes/client/api/apiextensions_api.py b/kubernetes/client/api/apiextensions_api.py index a7229730a..a2de1de5a 100644 --- a/kubernetes/client/api/apiextensions_api.py +++ b/kubernetes/client/api/apiextensions_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/apiextensions_v1_api.py b/kubernetes/client/api/apiextensions_v1_api.py index b21a961bd..f3c801159 100644 --- a/kubernetes/client/api/apiextensions_v1_api.py +++ b/kubernetes/client/api/apiextensions_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/apiregistration_api.py b/kubernetes/client/api/apiregistration_api.py index 518cf225e..cf5f7a2e2 100644 --- a/kubernetes/client/api/apiregistration_api.py +++ b/kubernetes/client/api/apiregistration_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/apiregistration_v1_api.py b/kubernetes/client/api/apiregistration_v1_api.py index 0d705471c..1ac27e997 100644 --- a/kubernetes/client/api/apiregistration_v1_api.py +++ b/kubernetes/client/api/apiregistration_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/apis_api.py b/kubernetes/client/api/apis_api.py index 359fe3144..24f6de174 100644 --- a/kubernetes/client/api/apis_api.py +++ b/kubernetes/client/api/apis_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/apps_api.py b/kubernetes/client/api/apps_api.py index 118c8a186..1da5f3314 100644 --- a/kubernetes/client/api/apps_api.py +++ b/kubernetes/client/api/apps_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/apps_v1_api.py b/kubernetes/client/api/apps_v1_api.py index 0c39a4fa9..93e332b13 100644 --- a/kubernetes/client/api/apps_v1_api.py +++ b/kubernetes/client/api/apps_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/authentication_api.py b/kubernetes/client/api/authentication_api.py index bd7c8c761..27b118c98 100644 --- a/kubernetes/client/api/authentication_api.py +++ b/kubernetes/client/api/authentication_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/authentication_v1_api.py b/kubernetes/client/api/authentication_v1_api.py index b049a9088..34e9396f2 100644 --- a/kubernetes/client/api/authentication_v1_api.py +++ b/kubernetes/client/api/authentication_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/authorization_api.py b/kubernetes/client/api/authorization_api.py index eee633898..e0fe3712e 100644 --- a/kubernetes/client/api/authorization_api.py +++ b/kubernetes/client/api/authorization_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/authorization_v1_api.py b/kubernetes/client/api/authorization_v1_api.py index 1a87ee91e..c240ce272 100644 --- a/kubernetes/client/api/authorization_v1_api.py +++ b/kubernetes/client/api/authorization_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/autoscaling_api.py b/kubernetes/client/api/autoscaling_api.py index d329ad2d4..aedbf889a 100644 --- a/kubernetes/client/api/autoscaling_api.py +++ b/kubernetes/client/api/autoscaling_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/autoscaling_v1_api.py b/kubernetes/client/api/autoscaling_v1_api.py index 514903d48..2a935fbab 100644 --- a/kubernetes/client/api/autoscaling_v1_api.py +++ b/kubernetes/client/api/autoscaling_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/autoscaling_v2_api.py b/kubernetes/client/api/autoscaling_v2_api.py index d336add93..ce95f1f2c 100644 --- a/kubernetes/client/api/autoscaling_v2_api.py +++ b/kubernetes/client/api/autoscaling_v2_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/batch_api.py b/kubernetes/client/api/batch_api.py index 5f6f7c62e..8c9b1a115 100644 --- a/kubernetes/client/api/batch_api.py +++ b/kubernetes/client/api/batch_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/batch_v1_api.py b/kubernetes/client/api/batch_v1_api.py index 7fdc5319e..3881dc5d4 100644 --- a/kubernetes/client/api/batch_v1_api.py +++ b/kubernetes/client/api/batch_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/certificates_api.py b/kubernetes/client/api/certificates_api.py index b72b98a18..4e1bb128a 100644 --- a/kubernetes/client/api/certificates_api.py +++ b/kubernetes/client/api/certificates_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/certificates_v1_api.py b/kubernetes/client/api/certificates_v1_api.py index 842e053ea..3447d85dc 100644 --- a/kubernetes/client/api/certificates_v1_api.py +++ b/kubernetes/client/api/certificates_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/certificates_v1alpha1_api.py b/kubernetes/client/api/certificates_v1alpha1_api.py index 62ef4c69a..168a2f7ee 100644 --- a/kubernetes/client/api/certificates_v1alpha1_api.py +++ b/kubernetes/client/api/certificates_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -170,6 +170,149 @@ def create_cluster_trust_bundle_with_http_info(self, body, **kwargs): # noqa: E _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) + def create_namespaced_pod_certificate_request(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod_certificate_request # noqa: E501 + + create a PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_namespaced_pod_certificate_request(namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodCertificateRequest body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1alpha1PodCertificateRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.create_namespaced_pod_certificate_request_with_http_info(namespace, body, **kwargs) # noqa: E501 + + def create_namespaced_pod_certificate_request_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod_certificate_request # noqa: E501 + + create a PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_namespaced_pod_certificate_request_with_http_info(namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodCertificateRequest body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_pod_certificate_request" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_certificate_request`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_pod_certificate_request`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodCertificateRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_cluster_trust_bundle(self, name, **kwargs): # noqa: E501 """delete_cluster_trust_bundle # noqa: E501 @@ -429,44 +572,1580 @@ def delete_collection_cluster_trust_bundle_with_http_info(self, **kwargs): # no if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_cluster_trust_bundle" % key + " to method delete_collection_cluster_trust_bundle" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_pod_certificate_request(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_pod_certificate_request # noqa: E501 + + delete collection of PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_collection_namespaced_pod_certificate_request(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int 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. + :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool 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. + :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.delete_collection_namespaced_pod_certificate_request_with_http_info(namespace, **kwargs) # noqa: E501 + + def delete_collection_namespaced_pod_certificate_request_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_pod_certificate_request # noqa: E501 + + delete collection of PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_collection_namespaced_pod_certificate_request_with_http_info(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int 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. + :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool 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. + :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + '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', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_pod_certificate_request" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_certificate_request`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_pod_certificate_request(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_pod_certificate_request # noqa: E501 + + delete a PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_namespaced_pod_certificate_request(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.delete_namespaced_pod_certificate_request_with_http_info(name, namespace, **kwargs) # noqa: E501 + + def delete_namespaced_pod_certificate_request_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_pod_certificate_request # noqa: E501 + + delete a PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_namespaced_pod_certificate_request_with_http_info(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'ignore_store_read_error_with_cluster_breaking_potential', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_pod_certificate_request" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_certificate_request`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_certificate_request`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_resources(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 + + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_resources_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_resources" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_trust_bundle(self, **kwargs): # noqa: E501 + """list_cluster_trust_bundle # noqa: E501 + + list or watch objects of kind ClusterTrustBundle # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_cluster_trust_bundle(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1alpha1ClusterTrustBundleList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.list_cluster_trust_bundle_with_http_info(**kwargs) # noqa: E501 + + def list_cluster_trust_bundle_with_http_info(self, **kwargs): # noqa: E501 + """list_cluster_trust_bundle # noqa: E501 + + list or watch objects of kind ClusterTrustBundle # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_cluster_trust_bundle_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterTrustBundleList, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'resource_version_match', + 'send_initial_events', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_cluster_trust_bundle" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + 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']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterTrustBundleList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_pod_certificate_request(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_pod_certificate_request # noqa: E501 + + list or watch objects of kind PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_namespaced_pod_certificate_request(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1alpha1PodCertificateRequestList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.list_namespaced_pod_certificate_request_with_http_info(namespace, **kwargs) # noqa: E501 + + def list_namespaced_pod_certificate_request_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_pod_certificate_request # noqa: E501 + + list or watch objects of kind PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_namespaced_pod_certificate_request_with_http_info(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PodCertificateRequestList, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'resource_version_match', + 'send_initial_events', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_pod_certificate_request" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_certificate_request`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + 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']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodCertificateRequestList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_pod_certificate_request_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_pod_certificate_request_for_all_namespaces # noqa: E501 + + list or watch objects of kind PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_pod_certificate_request_for_all_namespaces(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1alpha1PodCertificateRequestList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.list_pod_certificate_request_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 + + def list_pod_certificate_request_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_pod_certificate_request_for_all_namespaces # noqa: E501 + + list or watch objects of kind PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_pod_certificate_request_for_all_namespaces_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PodCertificateRequestList, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'resource_version_match', + 'send_initial_events', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_pod_certificate_request_for_all_namespaces" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + 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']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1alpha1/podcertificaterequests', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodCertificateRequestList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_trust_bundle(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_trust_bundle # noqa: E501 + + partially update the specified ClusterTrustBundle # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_cluster_trust_bundle(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ClusterTrustBundle (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1alpha1ClusterTrustBundle + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.patch_cluster_trust_bundle_with_http_info(name, body, **kwargs) # noqa: E501 + + def patch_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_trust_bundle # noqa: E501 + + partially update the specified ClusterTrustBundle # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_cluster_trust_bundle_with_http_info(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ClusterTrustBundle (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterTrustBundle, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_cluster_trust_bundle" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_cluster_trust_bundle`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_cluster_trust_bundle`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterTrustBundle', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_pod_certificate_request(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_certificate_request # noqa: E501 + + partially update the specified PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_namespaced_pod_certificate_request(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1alpha1PodCertificateRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.patch_namespaced_pod_certificate_request_with_http_info(name, namespace, body, **kwargs) # noqa: E501 + + def patch_namespaced_pod_certificate_request_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_certificate_request # noqa: E501 + + partially update the specified PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_namespaced_pod_certificate_request_with_http_info(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_pod_certificate_request" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_certificate_request`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_certificate_request`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_certificate_request`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodCertificateRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_pod_certificate_request_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_certificate_request_status # noqa: E501 + + partially update status of the specified PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_namespaced_pod_certificate_request_status(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1alpha1PodCertificateRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.patch_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 + + def patch_namespaced_pod_certificate_request_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_certificate_request_status # noqa: E501 + + partially update status of the specified PodCertificateRequest # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_pod_certificate_request_status" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_certificate_request_status`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_certificate_request_status`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_certificate_request_status`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodCertificateRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_trust_bundle(self, name, **kwargs): # noqa: E501 + """read_cluster_trust_bundle # noqa: E501 + + read the specified ClusterTrustBundle # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_cluster_trust_bundle(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ClusterTrustBundle (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1alpha1ClusterTrustBundle + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.read_cluster_trust_bundle_with_http_info(name, **kwargs) # noqa: E501 + + def read_cluster_trust_bundle_with_http_info(self, name, **kwargs): # noqa: E501 + """read_cluster_trust_bundle # noqa: E501 + + read the specified ClusterTrustBundle # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_cluster_trust_bundle_with_http_info(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ClusterTrustBundle (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterTrustBundle, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method read_cluster_trust_bundle" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_cluster_trust_bundle`") # noqa: E501 collection_formats = {} path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 - query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 - query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 - query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 - query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 header_params = {} @@ -474,8 +2153,6 @@ def delete_collection_cluster_trust_bundle_with_http_info(self, **kwargs): # no local_var_files = {} body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 @@ -484,14 +2161,14 @@ def delete_collection_cluster_trust_bundle_with_http_info(self, **kwargs): # no auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', 'DELETE', + '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', # noqa: E501 + response_type='V1alpha1ClusterTrustBundle', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -499,16 +2176,19 @@ def delete_collection_cluster_trust_bundle_with_http_info(self, **kwargs): # no _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources(self, **kwargs): # noqa: E501 - """get_api_resources # noqa: E501 + def read_namespaced_pod_certificate_request(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_certificate_request # noqa: E501 - get available resources # noqa: E501 + read the specified PodCertificateRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_resources(async_req=True) + >>> thread = api.read_namespaced_pod_certificate_request(name, namespace, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -516,23 +2196,26 @@ def get_api_resources(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1APIResourceList + :return: V1alpha1PodCertificateRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 + return self.read_namespaced_pod_certificate_request_with_http_info(name, namespace, **kwargs) # noqa: E501 - def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 - """get_api_resources # noqa: E501 + def read_namespaced_pod_certificate_request_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_certificate_request # noqa: E501 - get available resources # noqa: E501 + read the specified PodCertificateRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_resources_with_http_info(async_req=True) + >>> thread = api.read_namespaced_pod_certificate_request_with_http_info(name, namespace, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -542,7 +2225,7 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -550,6 +2233,9 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ + 'name', + 'namespace', + 'pretty' ] all_params.extend( [ @@ -564,16 +2250,30 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key + " to method read_namespaced_pod_certificate_request" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_pod_certificate_request`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_certificate_request`") # noqa: E501 collection_formats = {} path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -589,14 +2289,14 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/certificates.k8s.io/v1alpha1/', 'GET', + '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', # noqa: E501 + response_type='V1alpha1PodCertificateRequest', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -604,27 +2304,19 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def list_cluster_trust_bundle(self, **kwargs): # noqa: E501 - """list_cluster_trust_bundle # noqa: E501 + def read_namespaced_pod_certificate_request_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_certificate_request_status # noqa: E501 - list or watch objects of kind ClusterTrustBundle # noqa: E501 + read status of the specified PodCertificateRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_cluster_trust_bundle(async_req=True) + >>> thread = api.read_namespaced_pod_certificate_request_status(name, namespace, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -632,34 +2324,26 @@ def list_cluster_trust_bundle(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1alpha1ClusterTrustBundleList + :return: V1alpha1PodCertificateRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.list_cluster_trust_bundle_with_http_info(**kwargs) # noqa: E501 + return self.read_namespaced_pod_certificate_request_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - def list_cluster_trust_bundle_with_http_info(self, **kwargs): # noqa: E501 - """list_cluster_trust_bundle # noqa: E501 + def read_namespaced_pod_certificate_request_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_certificate_request_status # noqa: E501 - list or watch objects of kind ClusterTrustBundle # noqa: E501 + read status of the specified PodCertificateRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_cluster_trust_bundle_with_http_info(async_req=True) + >>> thread = api.read_namespaced_pod_certificate_request_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -669,7 +2353,7 @@ def list_cluster_trust_bundle_with_http_info(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1alpha1ClusterTrustBundleList, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -677,17 +2361,9 @@ def list_cluster_trust_bundle_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'pretty', - 'allow_watch_bookmarks', - '_continue', - 'field_selector', - 'label_selector', - 'limit', - 'resource_version', - 'resource_version_match', - 'send_initial_events', - 'timeout_seconds', - 'watch' + 'name', + 'namespace', + 'pretty' ] all_params.extend( [ @@ -702,38 +2378,30 @@ def list_cluster_trust_bundle_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method list_cluster_trust_bundle" % key + " to method read_namespaced_pod_certificate_request_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_pod_certificate_request_status`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_certificate_request_status`") # noqa: E501 collection_formats = {} path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -743,20 +2411,20 @@ def list_cluster_trust_bundle_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` 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']) # noqa: E501 + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 # Authentication setting auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', 'GET', + '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1ClusterTrustBundleList', # noqa: E501 + response_type='V1alpha1PodCertificateRequest', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -764,23 +2432,22 @@ def list_cluster_trust_bundle_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def patch_cluster_trust_bundle(self, name, body, **kwargs): # noqa: E501 - """patch_cluster_trust_bundle # noqa: E501 + def replace_cluster_trust_bundle(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_trust_bundle # noqa: E501 - partially update the specified ClusterTrustBundle # noqa: E501 + replace the specified ClusterTrustBundle # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_cluster_trust_bundle(name, body, async_req=True) + >>> thread = api.replace_cluster_trust_bundle(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str name: name of the ClusterTrustBundle (required) - :param object body: (required) + :param V1alpha1ClusterTrustBundle body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -793,25 +2460,24 @@ def patch_cluster_trust_bundle(self, name, body, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.patch_cluster_trust_bundle_with_http_info(name, body, **kwargs) # noqa: E501 + return self.replace_cluster_trust_bundle_with_http_info(name, body, **kwargs) # noqa: E501 - def patch_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # noqa: E501 - """patch_cluster_trust_bundle # noqa: E501 + def replace_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_trust_bundle # noqa: E501 - partially update the specified ClusterTrustBundle # noqa: E501 + replace the specified ClusterTrustBundle # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_cluster_trust_bundle_with_http_info(name, body, async_req=True) + >>> thread = api.replace_cluster_trust_bundle_with_http_info(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str name: name of the ClusterTrustBundle (required) - :param object body: (required) + :param V1alpha1ClusterTrustBundle body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -834,8 +2500,7 @@ def patch_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # no 'pretty', 'dry_run', 'field_manager', - 'field_validation', - 'force' + 'field_validation' ] all_params.extend( [ @@ -850,18 +2515,18 @@ def patch_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # no if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method patch_cluster_trust_bundle" % key + " to method replace_cluster_trust_bundle" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `patch_cluster_trust_bundle`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_cluster_trust_bundle`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `patch_cluster_trust_bundle`") # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_cluster_trust_bundle`") # noqa: E501 collection_formats = {} @@ -878,8 +2543,6 @@ def patch_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # no query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 - if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 - query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -893,15 +2556,11 @@ def patch_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # no header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 - # Authentication setting auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', 'PATCH', + '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', 'PUT', path_params, query_params, header_params, @@ -916,18 +2575,23 @@ def patch_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # no _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def read_cluster_trust_bundle(self, name, **kwargs): # noqa: E501 - """read_cluster_trust_bundle # noqa: E501 + def replace_namespaced_pod_certificate_request(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_certificate_request # noqa: E501 - read the specified ClusterTrustBundle # noqa: E501 + replace the specified PodCertificateRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_cluster_trust_bundle(name, async_req=True) + >>> thread = api.replace_namespaced_pod_certificate_request(name, namespace, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ClusterTrustBundle (required) + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodCertificateRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -935,25 +2599,30 @@ def read_cluster_trust_bundle(self, name, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1alpha1ClusterTrustBundle + :return: V1alpha1PodCertificateRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.read_cluster_trust_bundle_with_http_info(name, **kwargs) # noqa: E501 + return self.replace_namespaced_pod_certificate_request_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - def read_cluster_trust_bundle_with_http_info(self, name, **kwargs): # noqa: E501 - """read_cluster_trust_bundle # noqa: E501 + def replace_namespaced_pod_certificate_request_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_certificate_request # noqa: E501 - read the specified ClusterTrustBundle # noqa: E501 + replace the specified PodCertificateRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_cluster_trust_bundle_with_http_info(name, async_req=True) + >>> thread = api.replace_namespaced_pod_certificate_request_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ClusterTrustBundle (required) + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodCertificateRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -963,7 +2632,7 @@ def read_cluster_trust_bundle_with_http_info(self, name, **kwargs): # noqa: E50 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1alpha1ClusterTrustBundle, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -972,7 +2641,12 @@ def read_cluster_trust_bundle_with_http_info(self, name, **kwargs): # noqa: E50 all_params = [ 'name', - 'pretty' + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' ] all_params.extend( [ @@ -987,24 +2661,40 @@ def read_cluster_trust_bundle_with_http_info(self, name, **kwargs): # noqa: E50 if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method read_cluster_trust_bundle" % key + " to method replace_namespaced_pod_certificate_request" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `read_cluster_trust_bundle`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_certificate_request`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_certificate_request`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_certificate_request`") # noqa: E501 collection_formats = {} path_params = {} if 'name' in local_var_params: path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 header_params = {} @@ -1012,6 +2702,8 @@ def read_cluster_trust_bundle_with_http_info(self, name, **kwargs): # noqa: E50 local_var_files = {} body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 @@ -1020,14 +2712,14 @@ def read_cluster_trust_bundle_with_http_info(self, name, **kwargs): # noqa: E50 auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', 'GET', + '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1ClusterTrustBundle', # noqa: E501 + response_type='V1alpha1PodCertificateRequest', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1035,18 +2727,19 @@ def read_cluster_trust_bundle_with_http_info(self, name, **kwargs): # noqa: E50 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def replace_cluster_trust_bundle(self, name, body, **kwargs): # noqa: E501 - """replace_cluster_trust_bundle # noqa: E501 + def replace_namespaced_pod_certificate_request_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_certificate_request_status # noqa: E501 - replace the specified ClusterTrustBundle # noqa: E501 + replace status of the specified PodCertificateRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_cluster_trust_bundle(name, body, async_req=True) + >>> thread = api.replace_namespaced_pod_certificate_request_status(name, namespace, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ClusterTrustBundle (required) - :param V1alpha1ClusterTrustBundle body: (required) + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodCertificateRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. @@ -1058,25 +2751,26 @@ def replace_cluster_trust_bundle(self, name, body, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1alpha1ClusterTrustBundle + :return: V1alpha1PodCertificateRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.replace_cluster_trust_bundle_with_http_info(name, body, **kwargs) # noqa: E501 + return self.replace_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - def replace_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # noqa: E501 - """replace_cluster_trust_bundle # noqa: E501 + def replace_namespaced_pod_certificate_request_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_certificate_request_status # noqa: E501 - replace the specified ClusterTrustBundle # noqa: E501 + replace status of the specified PodCertificateRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_cluster_trust_bundle_with_http_info(name, body, async_req=True) + >>> thread = api.replace_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ClusterTrustBundle (required) - :param V1alpha1ClusterTrustBundle body: (required) + :param str name: name of the PodCertificateRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodCertificateRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. @@ -1090,7 +2784,7 @@ def replace_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1alpha1ClusterTrustBundle, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -1099,6 +2793,7 @@ def replace_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # all_params = [ 'name', + 'namespace', 'body', 'pretty', 'dry_run', @@ -1118,24 +2813,30 @@ def replace_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method replace_cluster_trust_bundle" % key + " to method replace_namespaced_pod_certificate_request_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `replace_cluster_trust_bundle`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_certificate_request_status`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_certificate_request_status`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `replace_cluster_trust_bundle`") # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_certificate_request_status`") # noqa: E501 collection_formats = {} path_params = {} if 'name' in local_var_params: path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 @@ -1163,14 +2864,14 @@ def replace_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', 'PUT', + '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1ClusterTrustBundle', # noqa: E501 + response_type='V1alpha1PodCertificateRequest', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 diff --git a/kubernetes/client/api/certificates_v1beta1_api.py b/kubernetes/client/api/certificates_v1beta1_api.py index 630983a54..bb9382f57 100644 --- a/kubernetes/client/api/certificates_v1beta1_api.py +++ b/kubernetes/client/api/certificates_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/coordination_api.py b/kubernetes/client/api/coordination_api.py index 7274ada5f..6557f73da 100644 --- a/kubernetes/client/api/coordination_api.py +++ b/kubernetes/client/api/coordination_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/coordination_v1_api.py b/kubernetes/client/api/coordination_v1_api.py index 9a4de0340..91e4b3d20 100644 --- a/kubernetes/client/api/coordination_v1_api.py +++ b/kubernetes/client/api/coordination_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/coordination_v1alpha2_api.py b/kubernetes/client/api/coordination_v1alpha2_api.py index 440cf7804..7572fa195 100644 --- a/kubernetes/client/api/coordination_v1alpha2_api.py +++ b/kubernetes/client/api/coordination_v1alpha2_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/coordination_v1beta1_api.py b/kubernetes/client/api/coordination_v1beta1_api.py index 0ac7db875..4e3d42c86 100644 --- a/kubernetes/client/api/coordination_v1beta1_api.py +++ b/kubernetes/client/api/coordination_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/core_api.py b/kubernetes/client/api/core_api.py index 3c9ded93b..71ad82a14 100644 --- a/kubernetes/client/api/core_api.py +++ b/kubernetes/client/api/core_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/core_v1_api.py b/kubernetes/client/api/core_v1_api.py index fa64203bc..4ea0ed311 100644 --- a/kubernetes/client/api/core_v1_api.py +++ b/kubernetes/client/api/core_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/custom_objects_api.py b/kubernetes/client/api/custom_objects_api.py index f5af0e758..9a9ef0012 100644 --- a/kubernetes/client/api/custom_objects_api.py +++ b/kubernetes/client/api/custom_objects_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/discovery_api.py b/kubernetes/client/api/discovery_api.py index 040dee289..80c0566b3 100644 --- a/kubernetes/client/api/discovery_api.py +++ b/kubernetes/client/api/discovery_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/discovery_v1_api.py b/kubernetes/client/api/discovery_v1_api.py index f775778bd..9afa99000 100644 --- a/kubernetes/client/api/discovery_v1_api.py +++ b/kubernetes/client/api/discovery_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/events_api.py b/kubernetes/client/api/events_api.py index 66f02f41b..2e66c5b36 100644 --- a/kubernetes/client/api/events_api.py +++ b/kubernetes/client/api/events_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/events_v1_api.py b/kubernetes/client/api/events_v1_api.py index 1ca196fe5..dcc4df783 100644 --- a/kubernetes/client/api/events_v1_api.py +++ b/kubernetes/client/api/events_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/flowcontrol_apiserver_api.py b/kubernetes/client/api/flowcontrol_apiserver_api.py index 26664da0e..600a2ffee 100644 --- a/kubernetes/client/api/flowcontrol_apiserver_api.py +++ b/kubernetes/client/api/flowcontrol_apiserver_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/flowcontrol_apiserver_v1_api.py b/kubernetes/client/api/flowcontrol_apiserver_v1_api.py index 75eb2b10b..ce1ce6487 100644 --- a/kubernetes/client/api/flowcontrol_apiserver_v1_api.py +++ b/kubernetes/client/api/flowcontrol_apiserver_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/internal_apiserver_api.py b/kubernetes/client/api/internal_apiserver_api.py index 091b5e934..624feaaaa 100644 --- a/kubernetes/client/api/internal_apiserver_api.py +++ b/kubernetes/client/api/internal_apiserver_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/internal_apiserver_v1alpha1_api.py b/kubernetes/client/api/internal_apiserver_v1alpha1_api.py index 795da4f47..fc8d167cd 100644 --- a/kubernetes/client/api/internal_apiserver_v1alpha1_api.py +++ b/kubernetes/client/api/internal_apiserver_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/logs_api.py b/kubernetes/client/api/logs_api.py index ec1463e8e..ecad1a124 100644 --- a/kubernetes/client/api/logs_api.py +++ b/kubernetes/client/api/logs_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/networking_api.py b/kubernetes/client/api/networking_api.py index 3f3ebdaa2..0b5c5dd49 100644 --- a/kubernetes/client/api/networking_api.py +++ b/kubernetes/client/api/networking_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/networking_v1_api.py b/kubernetes/client/api/networking_v1_api.py index 0a078d846..b97592139 100644 --- a/kubernetes/client/api/networking_v1_api.py +++ b/kubernetes/client/api/networking_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/networking_v1beta1_api.py b/kubernetes/client/api/networking_v1beta1_api.py index a5642a061..46d225060 100644 --- a/kubernetes/client/api/networking_v1beta1_api.py +++ b/kubernetes/client/api/networking_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/node_api.py b/kubernetes/client/api/node_api.py index 0fa1d9a9c..6cbe73219 100644 --- a/kubernetes/client/api/node_api.py +++ b/kubernetes/client/api/node_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/node_v1_api.py b/kubernetes/client/api/node_v1_api.py index 0fae52364..85220fcde 100644 --- a/kubernetes/client/api/node_v1_api.py +++ b/kubernetes/client/api/node_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/openid_api.py b/kubernetes/client/api/openid_api.py index 05400c78c..8d17172a3 100644 --- a/kubernetes/client/api/openid_api.py +++ b/kubernetes/client/api/openid_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/policy_api.py b/kubernetes/client/api/policy_api.py index c69f7ae0d..95ac1ec52 100644 --- a/kubernetes/client/api/policy_api.py +++ b/kubernetes/client/api/policy_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/policy_v1_api.py b/kubernetes/client/api/policy_v1_api.py index f4d0ee70f..d8f7fffdc 100644 --- a/kubernetes/client/api/policy_v1_api.py +++ b/kubernetes/client/api/policy_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/rbac_authorization_api.py b/kubernetes/client/api/rbac_authorization_api.py index 7ad6bb9ee..5f7105b09 100644 --- a/kubernetes/client/api/rbac_authorization_api.py +++ b/kubernetes/client/api/rbac_authorization_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/rbac_authorization_v1_api.py b/kubernetes/client/api/rbac_authorization_v1_api.py index 10fc3a844..aa811e43b 100644 --- a/kubernetes/client/api/rbac_authorization_v1_api.py +++ b/kubernetes/client/api/rbac_authorization_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/resource_api.py b/kubernetes/client/api/resource_api.py index 6e2668e56..9355aa8cc 100644 --- a/kubernetes/client/api/resource_api.py +++ b/kubernetes/client/api/resource_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/resource_v1_api.py b/kubernetes/client/api/resource_v1_api.py new file mode 100644 index 000000000..abc10f8ca --- /dev/null +++ b/kubernetes/client/api/resource_v1_api.py @@ -0,0 +1,5177 @@ +# 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.34 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ResourceV1Api(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_device_class(self, body, **kwargs): # noqa: E501 + """create_device_class # noqa: E501 + + create a DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_device_class(body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param V1DeviceClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1DeviceClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.create_device_class_with_http_info(body, **kwargs) # noqa: E501 + + def create_device_class_with_http_info(self, body, **kwargs): # noqa: E501 + """create_device_class # noqa: E501 + + create a DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_device_class_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param V1DeviceClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DeviceClass, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_device_class" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_device_class`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/deviceclasses', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeviceClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_resource_claim(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_resource_claim # noqa: E501 + + create a ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_namespaced_resource_claim(namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param ResourceV1ResourceClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: ResourceV1ResourceClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.create_namespaced_resource_claim_with_http_info(namespace, body, **kwargs) # noqa: E501 + + def create_namespaced_resource_claim_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_resource_claim # noqa: E501 + + create a ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_namespaced_resource_claim_with_http_info(namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param ResourceV1ResourceClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_resource_claim" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_claim`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_resource_claim`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResourceV1ResourceClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_resource_claim_template(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_resource_claim_template # noqa: E501 + + create a ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_namespaced_resource_claim_template(namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceClaimTemplate body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceClaimTemplate + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.create_namespaced_resource_claim_template_with_http_info(namespace, body, **kwargs) # noqa: E501 + + def create_namespaced_resource_claim_template_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_resource_claim_template # noqa: E501 + + create a ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_namespaced_resource_claim_template_with_http_info(namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceClaimTemplate body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_resource_claim_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_claim_template`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_resource_claim_template`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceClaimTemplate', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_resource_slice(self, body, **kwargs): # noqa: E501 + """create_resource_slice # noqa: E501 + + create a ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_resource_slice(body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param V1ResourceSlice body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceSlice + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.create_resource_slice_with_http_info(body, **kwargs) # noqa: E501 + + def create_resource_slice_with_http_info(self, body, **kwargs): # noqa: E501 + """create_resource_slice # noqa: E501 + + create a ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_resource_slice_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param V1ResourceSlice body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceSlice, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_resource_slice" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_resource_slice`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/resourceslices', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceSlice', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_device_class(self, **kwargs): # noqa: E501 + """delete_collection_device_class # noqa: E501 + + delete collection of DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_collection_device_class(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int 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. + :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool 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. + :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.delete_collection_device_class_with_http_info(**kwargs) # noqa: E501 + + def delete_collection_device_class_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_device_class # noqa: E501 + + delete collection of DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_collection_device_class_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int 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. + :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool 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. + :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + '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', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_device_class" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/deviceclasses', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_resource_claim(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_resource_claim # noqa: E501 + + delete collection of ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_collection_namespaced_resource_claim(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int 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. + :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool 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. + :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.delete_collection_namespaced_resource_claim_with_http_info(namespace, **kwargs) # noqa: E501 + + def delete_collection_namespaced_resource_claim_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_resource_claim # noqa: E501 + + delete collection of ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_collection_namespaced_resource_claim_with_http_info(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int 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. + :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool 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. + :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + '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', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_resource_claim" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_claim`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_resource_claim_template(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_resource_claim_template # noqa: E501 + + delete collection of ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_collection_namespaced_resource_claim_template(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int 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. + :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool 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. + :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.delete_collection_namespaced_resource_claim_template_with_http_info(namespace, **kwargs) # noqa: E501 + + def delete_collection_namespaced_resource_claim_template_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_resource_claim_template # noqa: E501 + + delete collection of ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_collection_namespaced_resource_claim_template_with_http_info(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int 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. + :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool 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. + :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + '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', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_resource_claim_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_claim_template`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_resource_slice(self, **kwargs): # noqa: E501 + """delete_collection_resource_slice # noqa: E501 + + delete collection of ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_collection_resource_slice(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int 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. + :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool 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. + :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.delete_collection_resource_slice_with_http_info(**kwargs) # noqa: E501 + + def delete_collection_resource_slice_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_resource_slice # noqa: E501 + + delete collection of ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_collection_resource_slice_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int 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. + :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool 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. + :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + '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', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_resource_slice" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/resourceslices', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_device_class(self, name, **kwargs): # noqa: E501 + """delete_device_class # noqa: E501 + + delete a DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_device_class(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the DeviceClass (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1DeviceClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.delete_device_class_with_http_info(name, **kwargs) # noqa: E501 + + def delete_device_class_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_device_class # noqa: E501 + + delete a DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_device_class_with_http_info(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the DeviceClass (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DeviceClass, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'ignore_store_read_error_with_cluster_breaking_potential', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_device_class" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_device_class`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/deviceclasses/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeviceClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_resource_claim(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_resource_claim # noqa: E501 + + delete a ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_namespaced_resource_claim(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: ResourceV1ResourceClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.delete_namespaced_resource_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 + + def delete_namespaced_resource_claim_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_resource_claim # noqa: E501 + + delete a ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_namespaced_resource_claim_with_http_info(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'ignore_store_read_error_with_cluster_breaking_potential', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_resource_claim" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_claim`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_claim`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResourceV1ResourceClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_resource_claim_template(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_resource_claim_template # noqa: E501 + + delete a ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_namespaced_resource_claim_template(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaimTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceClaimTemplate + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.delete_namespaced_resource_claim_template_with_http_info(name, namespace, **kwargs) # noqa: E501 + + def delete_namespaced_resource_claim_template_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_resource_claim_template # noqa: E501 + + delete a ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_namespaced_resource_claim_template_with_http_info(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaimTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'ignore_store_read_error_with_cluster_breaking_potential', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_resource_claim_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_claim_template`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_claim_template`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceClaimTemplate', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_resource_slice(self, name, **kwargs): # noqa: E501 + """delete_resource_slice # noqa: E501 + + delete a ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_resource_slice(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceSlice (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceSlice + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.delete_resource_slice_with_http_info(name, **kwargs) # noqa: E501 + + def delete_resource_slice_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_resource_slice # noqa: E501 + + delete a ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_resource_slice_with_http_info(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceSlice (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceSlice, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'ignore_store_read_error_with_cluster_breaking_potential', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_resource_slice" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_resource_slice`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/resourceslices/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceSlice', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_resources(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 + + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_resources_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_resources" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_device_class(self, **kwargs): # noqa: E501 + """list_device_class # noqa: E501 + + list or watch objects of kind DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_device_class(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1DeviceClassList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.list_device_class_with_http_info(**kwargs) # noqa: E501 + + def list_device_class_with_http_info(self, **kwargs): # noqa: E501 + """list_device_class # noqa: E501 + + list or watch objects of kind DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_device_class_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DeviceClassList, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'resource_version_match', + 'send_initial_events', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_device_class" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + 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']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/deviceclasses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeviceClassList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_resource_claim(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_resource_claim # noqa: E501 + + list or watch objects of kind ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_namespaced_resource_claim(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceClaimList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.list_namespaced_resource_claim_with_http_info(namespace, **kwargs) # noqa: E501 + + def list_namespaced_resource_claim_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_resource_claim # noqa: E501 + + list or watch objects of kind ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_namespaced_resource_claim_with_http_info(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceClaimList, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'resource_version_match', + 'send_initial_events', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_resource_claim" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_claim`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + 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']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceClaimList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_resource_claim_template(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_resource_claim_template # noqa: E501 + + list or watch objects of kind ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_namespaced_resource_claim_template(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceClaimTemplateList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.list_namespaced_resource_claim_template_with_http_info(namespace, **kwargs) # noqa: E501 + + def list_namespaced_resource_claim_template_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_resource_claim_template # noqa: E501 + + list or watch objects of kind ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_namespaced_resource_claim_template_with_http_info(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceClaimTemplateList, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'resource_version_match', + 'send_initial_events', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_resource_claim_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_claim_template`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + 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']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceClaimTemplateList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_resource_claim_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_resource_claim_for_all_namespaces # noqa: E501 + + list or watch objects of kind ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_resource_claim_for_all_namespaces(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceClaimList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.list_resource_claim_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 + + def list_resource_claim_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_resource_claim_for_all_namespaces # noqa: E501 + + list or watch objects of kind ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_resource_claim_for_all_namespaces_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceClaimList, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'resource_version_match', + 'send_initial_events', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_resource_claim_for_all_namespaces" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + 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']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/resourceclaims', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceClaimList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_resource_claim_template_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_resource_claim_template_for_all_namespaces # noqa: E501 + + list or watch objects of kind ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_resource_claim_template_for_all_namespaces(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceClaimTemplateList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.list_resource_claim_template_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 + + def list_resource_claim_template_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_resource_claim_template_for_all_namespaces # noqa: E501 + + list or watch objects of kind ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_resource_claim_template_for_all_namespaces_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceClaimTemplateList, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'resource_version_match', + 'send_initial_events', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_resource_claim_template_for_all_namespaces" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + 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']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/resourceclaimtemplates', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceClaimTemplateList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_resource_slice(self, **kwargs): # noqa: E501 + """list_resource_slice # noqa: E501 + + list or watch objects of kind ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_resource_slice(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceSliceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.list_resource_slice_with_http_info(**kwargs) # noqa: E501 + + def list_resource_slice_with_http_info(self, **kwargs): # noqa: E501 + """list_resource_slice # noqa: E501 + + list or watch objects of kind ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_resource_slice_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceSliceList, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'resource_version_match', + 'send_initial_events', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_resource_slice" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + 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']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/resourceslices', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceSliceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_device_class(self, name, body, **kwargs): # noqa: E501 + """patch_device_class # noqa: E501 + + partially update the specified DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_device_class(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the DeviceClass (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1DeviceClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.patch_device_class_with_http_info(name, body, **kwargs) # noqa: E501 + + def patch_device_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_device_class # noqa: E501 + + partially update the specified DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_device_class_with_http_info(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the DeviceClass (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DeviceClass, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_device_class" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_device_class`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_device_class`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/deviceclasses/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeviceClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_resource_claim(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_resource_claim # noqa: E501 + + partially update the specified ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_namespaced_resource_claim(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: ResourceV1ResourceClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.patch_namespaced_resource_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 + + def patch_namespaced_resource_claim_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_resource_claim # noqa: E501 + + partially update the specified ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_namespaced_resource_claim_with_http_info(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_resource_claim" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_claim`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_claim`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_claim`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResourceV1ResourceClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_resource_claim_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_resource_claim_status # noqa: E501 + + partially update status of the specified ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_namespaced_resource_claim_status(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: ResourceV1ResourceClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 + + def patch_namespaced_resource_claim_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_resource_claim_status # noqa: E501 + + partially update status of the specified ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_resource_claim_status" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_claim_status`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_claim_status`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_claim_status`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResourceV1ResourceClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_resource_claim_template(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_resource_claim_template # noqa: E501 + + partially update the specified ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_namespaced_resource_claim_template(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaimTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceClaimTemplate + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 + + def patch_namespaced_resource_claim_template_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_resource_claim_template # noqa: E501 + + partially update the specified ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaimTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_resource_claim_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_claim_template`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_claim_template`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_claim_template`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceClaimTemplate', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_resource_slice(self, name, body, **kwargs): # noqa: E501 + """patch_resource_slice # noqa: E501 + + partially update the specified ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_resource_slice(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceSlice (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceSlice + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.patch_resource_slice_with_http_info(name, body, **kwargs) # noqa: E501 + + def patch_resource_slice_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_resource_slice # noqa: E501 + + partially update the specified ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_resource_slice_with_http_info(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceSlice (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceSlice, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_resource_slice" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_resource_slice`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_resource_slice`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/resourceslices/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceSlice', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_device_class(self, name, **kwargs): # noqa: E501 + """read_device_class # noqa: E501 + + read the specified DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_device_class(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the DeviceClass (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1DeviceClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.read_device_class_with_http_info(name, **kwargs) # noqa: E501 + + def read_device_class_with_http_info(self, name, **kwargs): # noqa: E501 + """read_device_class # noqa: E501 + + read the specified DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_device_class_with_http_info(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the DeviceClass (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DeviceClass, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method read_device_class" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_device_class`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/deviceclasses/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeviceClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_resource_claim(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_resource_claim # noqa: E501 + + read the specified ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_namespaced_resource_claim(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: ResourceV1ResourceClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.read_namespaced_resource_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 + + def read_namespaced_resource_claim_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_resource_claim # noqa: E501 + + read the specified ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_namespaced_resource_claim_with_http_info(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_resource_claim" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_claim`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_claim`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResourceV1ResourceClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_resource_claim_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_resource_claim_status # noqa: E501 + + read status of the specified ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_namespaced_resource_claim_status(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: ResourceV1ResourceClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.read_namespaced_resource_claim_status_with_http_info(name, namespace, **kwargs) # noqa: E501 + + def read_namespaced_resource_claim_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_resource_claim_status # noqa: E501 + + read status of the specified ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_namespaced_resource_claim_status_with_http_info(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_resource_claim_status" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_claim_status`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_claim_status`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResourceV1ResourceClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_resource_claim_template(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_resource_claim_template # noqa: E501 + + read the specified ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_namespaced_resource_claim_template(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaimTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceClaimTemplate + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.read_namespaced_resource_claim_template_with_http_info(name, namespace, **kwargs) # noqa: E501 + + def read_namespaced_resource_claim_template_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_resource_claim_template # noqa: E501 + + read the specified ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_namespaced_resource_claim_template_with_http_info(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaimTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_resource_claim_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_claim_template`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_claim_template`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceClaimTemplate', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_resource_slice(self, name, **kwargs): # noqa: E501 + """read_resource_slice # noqa: E501 + + read the specified ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_resource_slice(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceSlice (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceSlice + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.read_resource_slice_with_http_info(name, **kwargs) # noqa: E501 + + def read_resource_slice_with_http_info(self, name, **kwargs): # noqa: E501 + """read_resource_slice # noqa: E501 + + read the specified ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_resource_slice_with_http_info(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceSlice (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceSlice, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method read_resource_slice" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_resource_slice`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/resourceslices/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceSlice', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_device_class(self, name, body, **kwargs): # noqa: E501 + """replace_device_class # noqa: E501 + + replace the specified DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_device_class(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the DeviceClass (required) + :param V1DeviceClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1DeviceClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.replace_device_class_with_http_info(name, body, **kwargs) # noqa: E501 + + def replace_device_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_device_class # noqa: E501 + + replace the specified DeviceClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_device_class_with_http_info(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the DeviceClass (required) + :param V1DeviceClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DeviceClass, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_device_class" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_device_class`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_device_class`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/deviceclasses/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeviceClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_resource_claim(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_resource_claim # noqa: E501 + + replace the specified ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_namespaced_resource_claim(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param ResourceV1ResourceClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: ResourceV1ResourceClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.replace_namespaced_resource_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 + + def replace_namespaced_resource_claim_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_resource_claim # noqa: E501 + + replace the specified ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_namespaced_resource_claim_with_http_info(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param ResourceV1ResourceClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_resource_claim" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_claim`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_claim`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_claim`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResourceV1ResourceClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_resource_claim_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_resource_claim_status # noqa: E501 + + replace status of the specified ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_namespaced_resource_claim_status(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param ResourceV1ResourceClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: ResourceV1ResourceClaim + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 + + def replace_namespaced_resource_claim_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_resource_claim_status # noqa: E501 + + replace status of the specified ResourceClaim # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param ResourceV1ResourceClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_resource_claim_status" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_claim_status`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_claim_status`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_claim_status`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResourceV1ResourceClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_resource_claim_template(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_resource_claim_template # noqa: E501 + + replace the specified ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_namespaced_resource_claim_template(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaimTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceClaimTemplate body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceClaimTemplate + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 + + def replace_namespaced_resource_claim_template_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_resource_claim_template # noqa: E501 + + replace the specified ResourceClaimTemplate # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceClaimTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceClaimTemplate body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_resource_claim_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_claim_template`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_claim_template`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_claim_template`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceClaimTemplate', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_resource_slice(self, name, body, **kwargs): # noqa: E501 + """replace_resource_slice # noqa: E501 + + replace the specified ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_resource_slice(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceSlice (required) + :param V1ResourceSlice body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1ResourceSlice + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.replace_resource_slice_with_http_info(name, body, **kwargs) # noqa: E501 + + def replace_resource_slice_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_resource_slice # noqa: E501 + + replace the specified ResourceSlice # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_resource_slice_with_http_info(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the ResourceSlice (required) + :param V1ResourceSlice body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceSlice, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_resource_slice" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_resource_slice`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_resource_slice`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/resource.k8s.io/v1/resourceslices/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceSlice', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/resource_v1alpha3_api.py b/kubernetes/client/api/resource_v1alpha3_api.py index fc488dd29..8d30c6666 100644 --- a/kubernetes/client/api/resource_v1alpha3_api.py +++ b/kubernetes/client/api/resource_v1alpha3_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -36,140 +36,6 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_device_class(self, body, **kwargs): # noqa: E501 - """create_device_class # noqa: E501 - - create a DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_device_class(body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param V1alpha3DeviceClass body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3DeviceClass - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.create_device_class_with_http_info(body, **kwargs) # noqa: E501 - - def create_device_class_with_http_info(self, body, **kwargs): # noqa: E501 - """create_device_class # noqa: E501 - - create a DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_device_class_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param V1alpha3DeviceClass body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3DeviceClass, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method create_device_class" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `create_device_class`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/deviceclasses', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3DeviceClass', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - def create_device_taint_rule(self, body, **kwargs): # noqa: E501 """create_device_taint_rule # noqa: E501 @@ -304,22 +170,31 @@ def create_device_taint_rule_with_http_info(self, body, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_resource_claim(self, namespace, body, **kwargs): # noqa: E501 - """create_namespaced_resource_claim # noqa: E501 + def delete_collection_device_taint_rule(self, **kwargs): # noqa: E501 + """delete_collection_device_taint_rule # noqa: E501 - create a ResourceClaim # noqa: E501 + delete collection of DeviceTaintRule # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_namespaced_resource_claim(namespace, body, async_req=True) + >>> thread = api.delete_collection_device_taint_rule(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha3ResourceClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int 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. + :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool 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. + :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param V1DeleteOptions body: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -327,29 +202,38 @@ def create_namespaced_resource_claim(self, namespace, body, **kwargs): # noqa: number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1alpha3ResourceClaim + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.create_namespaced_resource_claim_with_http_info(namespace, body, **kwargs) # noqa: E501 + return self.delete_collection_device_taint_rule_with_http_info(**kwargs) # noqa: E501 - def create_namespaced_resource_claim_with_http_info(self, namespace, body, **kwargs): # noqa: E501 - """create_namespaced_resource_claim # noqa: E501 + def delete_collection_device_taint_rule_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_device_taint_rule # noqa: E501 - create a ResourceClaim # noqa: E501 + delete collection of DeviceTaintRule # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_namespaced_resource_claim_with_http_info(namespace, body, async_req=True) + >>> thread = api.delete_collection_device_taint_rule_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha3ResourceClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int 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. + :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool 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. + :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param V1DeleteOptions body: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -359,7 +243,7 @@ def create_namespaced_resource_claim_with_http_info(self, namespace, body, **kwa number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -367,12 +251,21 @@ def create_namespaced_resource_claim_with_http_info(self, namespace, body, **kwa local_var_params = locals() all_params = [ - 'namespace', - 'body', 'pretty', + '_continue', 'dry_run', - 'field_manager', - 'field_validation' + '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', + 'timeout_seconds', + 'body' ] all_params.extend( [ @@ -387,34 +280,44 @@ def create_namespaced_resource_claim_with_http_info(self, namespace, body, **kwa if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_resource_claim" % key + " to method delete_collection_device_taint_rule" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_claim`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_resource_claim`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 header_params = {} @@ -432,14 +335,14 @@ def create_namespaced_resource_claim_with_http_info(self, namespace, body, **kwa auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims', 'POST', + '/apis/resource.k8s.io/v1alpha3/devicetaintrules', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha3ResourceClaim', # noqa: E501 + response_type='V1Status', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -447,22 +350,24 @@ def create_namespaced_resource_claim_with_http_info(self, namespace, body, **kwa _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_resource_claim_template(self, namespace, body, **kwargs): # noqa: E501 - """create_namespaced_resource_claim_template # noqa: E501 + def delete_device_taint_rule(self, name, **kwargs): # noqa: E501 + """delete_device_taint_rule # noqa: E501 - create a ResourceClaimTemplate # noqa: E501 + delete a DeviceTaintRule # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_namespaced_resource_claim_template(namespace, body, async_req=True) + >>> thread = api.delete_device_taint_rule(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha3ResourceClaimTemplate body: (required) + :param str name: name of the DeviceTaintRule (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -470,29 +375,31 @@ def create_namespaced_resource_claim_template(self, namespace, body, **kwargs): number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1alpha3ResourceClaimTemplate + :return: V1alpha3DeviceTaintRule If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.create_namespaced_resource_claim_template_with_http_info(namespace, body, **kwargs) # noqa: E501 + return self.delete_device_taint_rule_with_http_info(name, **kwargs) # noqa: E501 - def create_namespaced_resource_claim_template_with_http_info(self, namespace, body, **kwargs): # noqa: E501 - """create_namespaced_resource_claim_template # noqa: E501 + def delete_device_taint_rule_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_device_taint_rule # noqa: E501 - create a ResourceClaimTemplate # noqa: E501 + delete a DeviceTaintRule # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_namespaced_resource_claim_template_with_http_info(namespace, body, async_req=True) + >>> thread = api.delete_device_taint_rule_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha3ResourceClaimTemplate body: (required) + :param str name: name of the DeviceTaintRule (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -502,7 +409,7 @@ def create_namespaced_resource_claim_template_with_http_info(self, namespace, bo number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1alpha3DeviceTaintRule, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -510,12 +417,14 @@ def create_namespaced_resource_claim_template_with_http_info(self, namespace, bo local_var_params = locals() all_params = [ - 'namespace', - 'body', + 'name', 'pretty', 'dry_run', - 'field_manager', - 'field_validation' + 'grace_period_seconds', + 'ignore_store_read_error_with_cluster_breaking_potential', + 'orphan_dependents', + 'propagation_policy', + 'body' ] all_params.extend( [ @@ -530,4915 +439,34 @@ def create_namespaced_resource_claim_template_with_http_info(self, namespace, bo if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_resource_claim_template" % key + " to method delete_device_taint_rule" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_claim_template`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_resource_claim_template`") # noqa: E501 + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_device_taint_rule`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaimTemplate', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_resource_slice(self, body, **kwargs): # noqa: E501 - """create_resource_slice # noqa: E501 - - create a ResourceSlice # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_resource_slice(body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param V1alpha3ResourceSlice body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceSlice - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.create_resource_slice_with_http_info(body, **kwargs) # noqa: E501 - - def create_resource_slice_with_http_info(self, body, **kwargs): # noqa: E501 - """create_resource_slice # noqa: E501 - - create a ResourceSlice # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_resource_slice_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param V1alpha3ResourceSlice body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceSlice, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method create_resource_slice" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `create_resource_slice`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/resourceslices', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceSlice', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_device_class(self, **kwargs): # noqa: E501 - """delete_collection_device_class # noqa: E501 - - delete collection of DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_device_class(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param int 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. - :param bool 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 - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param bool 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. - :param str 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. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param V1DeleteOptions body: - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.delete_collection_device_class_with_http_info(**kwargs) # noqa: E501 - - def delete_collection_device_class_with_http_info(self, **kwargs): # noqa: E501 - """delete_collection_device_class # noqa: E501 - - delete collection of DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_device_class_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param int 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. - :param bool 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 - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param bool 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. - :param str 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. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param V1DeleteOptions body: - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - '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', - 'timeout_seconds', - 'body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_device_class" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 - query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 - query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 - query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 - query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/deviceclasses', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_device_taint_rule(self, **kwargs): # noqa: E501 - """delete_collection_device_taint_rule # noqa: E501 - - delete collection of DeviceTaintRule # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_device_taint_rule(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param int 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. - :param bool 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 - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param bool 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. - :param str 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. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param V1DeleteOptions body: - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.delete_collection_device_taint_rule_with_http_info(**kwargs) # noqa: E501 - - def delete_collection_device_taint_rule_with_http_info(self, **kwargs): # noqa: E501 - """delete_collection_device_taint_rule # noqa: E501 - - delete collection of DeviceTaintRule # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_device_taint_rule_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param int 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. - :param bool 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 - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param bool 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. - :param str 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. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param V1DeleteOptions body: - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - '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', - 'timeout_seconds', - 'body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_device_taint_rule" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 - query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 - query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 - query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 - query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/devicetaintrules', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_resource_claim(self, namespace, **kwargs): # noqa: E501 - """delete_collection_namespaced_resource_claim # noqa: E501 - - delete collection of ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_namespaced_resource_claim(namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param int 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. - :param bool 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 - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param bool 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. - :param str 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. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param V1DeleteOptions body: - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.delete_collection_namespaced_resource_claim_with_http_info(namespace, **kwargs) # noqa: E501 - - def delete_collection_namespaced_resource_claim_with_http_info(self, namespace, **kwargs): # noqa: E501 - """delete_collection_namespaced_resource_claim # noqa: E501 - - delete collection of ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_namespaced_resource_claim_with_http_info(namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param int 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. - :param bool 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 - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param bool 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. - :param str 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. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param V1DeleteOptions body: - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - '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', - 'timeout_seconds', - 'body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_resource_claim" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_claim`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 - query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 - query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 - query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 - query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_resource_claim_template(self, namespace, **kwargs): # noqa: E501 - """delete_collection_namespaced_resource_claim_template # noqa: E501 - - delete collection of ResourceClaimTemplate # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_namespaced_resource_claim_template(namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param int 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. - :param bool 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 - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param bool 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. - :param str 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. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param V1DeleteOptions body: - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.delete_collection_namespaced_resource_claim_template_with_http_info(namespace, **kwargs) # noqa: E501 - - def delete_collection_namespaced_resource_claim_template_with_http_info(self, namespace, **kwargs): # noqa: E501 - """delete_collection_namespaced_resource_claim_template # noqa: E501 - - delete collection of ResourceClaimTemplate # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_namespaced_resource_claim_template_with_http_info(namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param int 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. - :param bool 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 - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param bool 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. - :param str 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. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param V1DeleteOptions body: - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - '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', - 'timeout_seconds', - 'body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_resource_claim_template" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_claim_template`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 - query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 - query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 - query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 - query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_resource_slice(self, **kwargs): # noqa: E501 - """delete_collection_resource_slice # noqa: E501 - - delete collection of ResourceSlice # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_resource_slice(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param int 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. - :param bool 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 - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param bool 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. - :param str 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. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param V1DeleteOptions body: - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.delete_collection_resource_slice_with_http_info(**kwargs) # noqa: E501 - - def delete_collection_resource_slice_with_http_info(self, **kwargs): # noqa: E501 - """delete_collection_resource_slice # noqa: E501 - - delete collection of ResourceSlice # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_collection_resource_slice_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param int 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. - :param bool 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 - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param bool 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. - :param str 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. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param V1DeleteOptions body: - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - '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', - 'timeout_seconds', - 'body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_resource_slice" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 - query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 - query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 - query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 - query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/resourceslices', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_device_class(self, name, **kwargs): # noqa: E501 - """delete_device_class # noqa: E501 - - delete a DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_device_class(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceClass (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param int 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. - :param bool 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 - :param bool 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. - :param str 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. - :param V1DeleteOptions body: - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3DeviceClass - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.delete_device_class_with_http_info(name, **kwargs) # noqa: E501 - - def delete_device_class_with_http_info(self, name, **kwargs): # noqa: E501 - """delete_device_class # noqa: E501 - - delete a DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_device_class_with_http_info(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceClass (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param int 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. - :param bool 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 - :param bool 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. - :param str 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. - :param V1DeleteOptions body: - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3DeviceClass, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'pretty', - 'dry_run', - 'grace_period_seconds', - 'ignore_store_read_error_with_cluster_breaking_potential', - 'orphan_dependents', - 'propagation_policy', - 'body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_device_class" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `delete_device_class`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 - query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 - query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 - if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 - query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 - query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3DeviceClass', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_device_taint_rule(self, name, **kwargs): # noqa: E501 - """delete_device_taint_rule # noqa: E501 - - delete a DeviceTaintRule # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_device_taint_rule(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceTaintRule (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param int 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. - :param bool 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 - :param bool 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. - :param str 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. - :param V1DeleteOptions body: - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3DeviceTaintRule - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.delete_device_taint_rule_with_http_info(name, **kwargs) # noqa: E501 - - def delete_device_taint_rule_with_http_info(self, name, **kwargs): # noqa: E501 - """delete_device_taint_rule # noqa: E501 - - delete a DeviceTaintRule # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_device_taint_rule_with_http_info(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceTaintRule (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param int 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. - :param bool 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 - :param bool 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. - :param str 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. - :param V1DeleteOptions body: - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3DeviceTaintRule, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'pretty', - 'dry_run', - 'grace_period_seconds', - 'ignore_store_read_error_with_cluster_breaking_potential', - 'orphan_dependents', - 'propagation_policy', - 'body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_device_taint_rule" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `delete_device_taint_rule`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 - query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 - query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 - if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 - query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 - query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3DeviceTaintRule', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_resource_claim(self, name, namespace, **kwargs): # noqa: E501 - """delete_namespaced_resource_claim # noqa: E501 - - delete a ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_namespaced_resource_claim(name, namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param int 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. - :param bool 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 - :param bool 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. - :param str 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. - :param V1DeleteOptions body: - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceClaim - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.delete_namespaced_resource_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 - - def delete_namespaced_resource_claim_with_http_info(self, name, namespace, **kwargs): # noqa: E501 - """delete_namespaced_resource_claim # noqa: E501 - - delete a ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_namespaced_resource_claim_with_http_info(name, namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param int 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. - :param bool 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 - :param bool 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. - :param str 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. - :param V1DeleteOptions body: - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'namespace', - 'pretty', - 'dry_run', - 'grace_period_seconds', - 'ignore_store_read_error_with_cluster_breaking_potential', - 'orphan_dependents', - 'propagation_policy', - 'body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_resource_claim" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_claim`") # noqa: E501 - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_claim`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 - query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 - query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 - if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 - query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 - query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaim', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_resource_claim_template(self, name, namespace, **kwargs): # noqa: E501 - """delete_namespaced_resource_claim_template # noqa: E501 - - delete a ResourceClaimTemplate # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_namespaced_resource_claim_template(name, namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaimTemplate (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param int 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. - :param bool 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 - :param bool 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. - :param str 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. - :param V1DeleteOptions body: - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceClaimTemplate - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.delete_namespaced_resource_claim_template_with_http_info(name, namespace, **kwargs) # noqa: E501 - - def delete_namespaced_resource_claim_template_with_http_info(self, name, namespace, **kwargs): # noqa: E501 - """delete_namespaced_resource_claim_template # noqa: E501 - - delete a ResourceClaimTemplate # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_namespaced_resource_claim_template_with_http_info(name, namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaimTemplate (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param int 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. - :param bool 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 - :param bool 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. - :param str 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. - :param V1DeleteOptions body: - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'namespace', - 'pretty', - 'dry_run', - 'grace_period_seconds', - 'ignore_store_read_error_with_cluster_breaking_potential', - 'orphan_dependents', - 'propagation_policy', - 'body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_resource_claim_template" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_claim_template`") # noqa: E501 - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_claim_template`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 - query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 - query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 - if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 - query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 - query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaimTemplate', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_resource_slice(self, name, **kwargs): # noqa: E501 - """delete_resource_slice # noqa: E501 - - delete a ResourceSlice # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_resource_slice(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceSlice (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param int 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. - :param bool 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 - :param bool 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. - :param str 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. - :param V1DeleteOptions body: - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceSlice - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.delete_resource_slice_with_http_info(name, **kwargs) # noqa: E501 - - def delete_resource_slice_with_http_info(self, name, **kwargs): # noqa: E501 - """delete_resource_slice # noqa: E501 - - delete a ResourceSlice # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_resource_slice_with_http_info(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceSlice (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param int 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. - :param bool 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 - :param bool 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. - :param str 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. - :param V1DeleteOptions body: - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceSlice, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'pretty', - 'dry_run', - 'grace_period_seconds', - 'ignore_store_read_error_with_cluster_breaking_potential', - 'orphan_dependents', - 'propagation_policy', - 'body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_resource_slice" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `delete_resource_slice`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 - query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 - query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 - if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 - query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 - query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceSlice', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): # noqa: E501 - """get_api_resources # noqa: E501 - - get available resources # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_resources(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - - def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 - """get_api_resources # noqa: E501 - - get available resources # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_resources_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_device_class(self, **kwargs): # noqa: E501 - """list_device_class # noqa: E501 - - list or watch objects of kind DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_device_class(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3DeviceClassList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.list_device_class_with_http_info(**kwargs) # noqa: E501 - - def list_device_class_with_http_info(self, **kwargs): # noqa: E501 - """list_device_class # noqa: E501 - - list or watch objects of kind DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_device_class_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3DeviceClassList, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'pretty', - 'allow_watch_bookmarks', - '_continue', - 'field_selector', - 'label_selector', - 'limit', - 'resource_version', - 'resource_version_match', - 'send_initial_events', - 'timeout_seconds', - 'watch' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method list_device_class" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - 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']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/deviceclasses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3DeviceClassList', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_device_taint_rule(self, **kwargs): # noqa: E501 - """list_device_taint_rule # noqa: E501 - - list or watch objects of kind DeviceTaintRule # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_device_taint_rule(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3DeviceTaintRuleList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.list_device_taint_rule_with_http_info(**kwargs) # noqa: E501 - - def list_device_taint_rule_with_http_info(self, **kwargs): # noqa: E501 - """list_device_taint_rule # noqa: E501 - - list or watch objects of kind DeviceTaintRule # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_device_taint_rule_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3DeviceTaintRuleList, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'pretty', - 'allow_watch_bookmarks', - '_continue', - 'field_selector', - 'label_selector', - 'limit', - 'resource_version', - 'resource_version_match', - 'send_initial_events', - 'timeout_seconds', - 'watch' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method list_device_taint_rule" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - 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']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/devicetaintrules', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3DeviceTaintRuleList', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_resource_claim(self, namespace, **kwargs): # noqa: E501 - """list_namespaced_resource_claim # noqa: E501 - - list or watch objects of kind ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_namespaced_resource_claim(namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceClaimList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.list_namespaced_resource_claim_with_http_info(namespace, **kwargs) # noqa: E501 - - def list_namespaced_resource_claim_with_http_info(self, namespace, **kwargs): # noqa: E501 - """list_namespaced_resource_claim # noqa: E501 - - list or watch objects of kind ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_namespaced_resource_claim_with_http_info(namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaimList, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'namespace', - 'pretty', - 'allow_watch_bookmarks', - '_continue', - 'field_selector', - 'label_selector', - 'limit', - 'resource_version', - 'resource_version_match', - 'send_initial_events', - 'timeout_seconds', - 'watch' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method list_namespaced_resource_claim" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_claim`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - 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']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaimList', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_resource_claim_template(self, namespace, **kwargs): # noqa: E501 - """list_namespaced_resource_claim_template # noqa: E501 - - list or watch objects of kind ResourceClaimTemplate # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_namespaced_resource_claim_template(namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceClaimTemplateList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.list_namespaced_resource_claim_template_with_http_info(namespace, **kwargs) # noqa: E501 - - def list_namespaced_resource_claim_template_with_http_info(self, namespace, **kwargs): # noqa: E501 - """list_namespaced_resource_claim_template # noqa: E501 - - list or watch objects of kind ResourceClaimTemplate # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_namespaced_resource_claim_template_with_http_info(namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaimTemplateList, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'namespace', - 'pretty', - 'allow_watch_bookmarks', - '_continue', - 'field_selector', - 'label_selector', - 'limit', - 'resource_version', - 'resource_version_match', - 'send_initial_events', - 'timeout_seconds', - 'watch' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method list_namespaced_resource_claim_template" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_claim_template`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - 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']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaimTemplateList', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_resource_claim_for_all_namespaces(self, **kwargs): # noqa: E501 - """list_resource_claim_for_all_namespaces # noqa: E501 - - list or watch objects of kind ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_resource_claim_for_all_namespaces(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceClaimList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.list_resource_claim_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - - def list_resource_claim_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 - """list_resource_claim_for_all_namespaces # noqa: E501 - - list or watch objects of kind ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_resource_claim_for_all_namespaces_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaimList, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'allow_watch_bookmarks', - '_continue', - 'field_selector', - 'label_selector', - 'limit', - 'pretty', - 'resource_version', - 'resource_version_match', - 'send_initial_events', - 'timeout_seconds', - 'watch' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method list_resource_claim_for_all_namespaces" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - 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']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/resourceclaims', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaimList', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_resource_claim_template_for_all_namespaces(self, **kwargs): # noqa: E501 - """list_resource_claim_template_for_all_namespaces # noqa: E501 - - list or watch objects of kind ResourceClaimTemplate # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_resource_claim_template_for_all_namespaces(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceClaimTemplateList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.list_resource_claim_template_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - - def list_resource_claim_template_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 - """list_resource_claim_template_for_all_namespaces # noqa: E501 - - list or watch objects of kind ResourceClaimTemplate # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_resource_claim_template_for_all_namespaces_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaimTemplateList, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'allow_watch_bookmarks', - '_continue', - 'field_selector', - 'label_selector', - 'limit', - 'pretty', - 'resource_version', - 'resource_version_match', - 'send_initial_events', - 'timeout_seconds', - 'watch' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method list_resource_claim_template_for_all_namespaces" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - 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']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/resourceclaimtemplates', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaimTemplateList', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_resource_slice(self, **kwargs): # noqa: E501 - """list_resource_slice # noqa: E501 - - list or watch objects of kind ResourceSlice # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_resource_slice(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceSliceList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.list_resource_slice_with_http_info(**kwargs) # noqa: E501 - - def list_resource_slice_with_http_info(self, **kwargs): # noqa: E501 - """list_resource_slice # noqa: E501 - - list or watch objects of kind ResourceSlice # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_resource_slice_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param bool 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. - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str 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 - :param str 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 - :param bool 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. - :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceSliceList, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'pretty', - 'allow_watch_bookmarks', - '_continue', - 'field_selector', - 'label_selector', - 'limit', - 'resource_version', - 'resource_version_match', - 'send_initial_events', - 'timeout_seconds', - 'watch' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method list_resource_slice" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 - query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 - query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 - query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 - query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 - query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 - query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 - if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 - query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 - if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 - query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - 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']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/resourceslices', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceSliceList', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_device_class(self, name, body, **kwargs): # noqa: E501 - """patch_device_class # noqa: E501 - - partially update the specified DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_device_class(name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceClass (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3DeviceClass - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.patch_device_class_with_http_info(name, body, **kwargs) # noqa: E501 - - def patch_device_class_with_http_info(self, name, body, **kwargs): # noqa: E501 - """patch_device_class # noqa: E501 - - partially update the specified DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_device_class_with_http_info(name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceClass (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3DeviceClass, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation', - 'force' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_device_class" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `patch_device_class`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `patch_device_class`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 - if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 - query_params.append(('force', local_var_params['force'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3DeviceClass', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_device_taint_rule(self, name, body, **kwargs): # noqa: E501 - """patch_device_taint_rule # noqa: E501 - - partially update the specified DeviceTaintRule # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_device_taint_rule(name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceTaintRule (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3DeviceTaintRule - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.patch_device_taint_rule_with_http_info(name, body, **kwargs) # noqa: E501 - - def patch_device_taint_rule_with_http_info(self, name, body, **kwargs): # noqa: E501 - """patch_device_taint_rule # noqa: E501 - - partially update the specified DeviceTaintRule # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_device_taint_rule_with_http_info(name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceTaintRule (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3DeviceTaintRule, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation', - 'force' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_device_taint_rule" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `patch_device_taint_rule`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `patch_device_taint_rule`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 - if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 - query_params.append(('force', local_var_params['force'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3DeviceTaintRule', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_resource_claim(self, name, namespace, body, **kwargs): # noqa: E501 - """patch_namespaced_resource_claim # noqa: E501 - - partially update the specified ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_namespaced_resource_claim(name, namespace, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceClaim - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.patch_namespaced_resource_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - - def patch_namespaced_resource_claim_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 - """patch_namespaced_resource_claim # noqa: E501 - - partially update the specified ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_namespaced_resource_claim_with_http_info(name, namespace, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'namespace', - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation', - 'force' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_resource_claim" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_claim`") # noqa: E501 - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_claim`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_claim`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 - if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 - query_params.append(('force', local_var_params['force'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaim', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_resource_claim_status(self, name, namespace, body, **kwargs): # noqa: E501 - """patch_namespaced_resource_claim_status # noqa: E501 - - partially update status of the specified ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_namespaced_resource_claim_status(name, namespace, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceClaim - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - - def patch_namespaced_resource_claim_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 - """patch_namespaced_resource_claim_status # noqa: E501 - - partially update status of the specified ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'namespace', - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation', - 'force' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_resource_claim_status" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_claim_status`") # noqa: E501 - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_claim_status`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_claim_status`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 - if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 - query_params.append(('force', local_var_params['force'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaim', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_resource_claim_template(self, name, namespace, body, **kwargs): # noqa: E501 - """patch_namespaced_resource_claim_template # noqa: E501 - - partially update the specified ResourceClaimTemplate # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_namespaced_resource_claim_template(name, namespace, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaimTemplate (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceClaimTemplate - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - - def patch_namespaced_resource_claim_template_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 - """patch_namespaced_resource_claim_template # noqa: E501 - - partially update the specified ResourceClaimTemplate # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaimTemplate (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'namespace', - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation', - 'force' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_resource_claim_template" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_claim_template`") # noqa: E501 - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_claim_template`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_claim_template`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 - if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 - query_params.append(('force', local_var_params['force'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaimTemplate', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_resource_slice(self, name, body, **kwargs): # noqa: E501 - """patch_resource_slice # noqa: E501 - - partially update the specified ResourceSlice # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_resource_slice(name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceSlice (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceSlice - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.patch_resource_slice_with_http_info(name, body, **kwargs) # noqa: E501 - - def patch_resource_slice_with_http_info(self, name, body, **kwargs): # noqa: E501 - """patch_resource_slice # noqa: E501 - - partially update the specified ResourceSlice # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_resource_slice_with_http_info(name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceSlice (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param bool 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. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceSlice, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation', - 'force' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_resource_slice" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `patch_resource_slice`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `patch_resource_slice`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 - if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 - query_params.append(('force', local_var_params['force'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceSlice', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_device_class(self, name, **kwargs): # noqa: E501 - """read_device_class # noqa: E501 - - read the specified DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_device_class(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceClass (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3DeviceClass - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.read_device_class_with_http_info(name, **kwargs) # noqa: E501 - - def read_device_class_with_http_info(self, name, **kwargs): # noqa: E501 - """read_device_class # noqa: E501 - - read the specified DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_device_class_with_http_info(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceClass (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3DeviceClass, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'pretty' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method read_device_class" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `read_device_class`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3DeviceClass', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_device_taint_rule(self, name, **kwargs): # noqa: E501 - """read_device_taint_rule # noqa: E501 - - read the specified DeviceTaintRule # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_device_taint_rule(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceTaintRule (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3DeviceTaintRule - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.read_device_taint_rule_with_http_info(name, **kwargs) # noqa: E501 - - def read_device_taint_rule_with_http_info(self, name, **kwargs): # noqa: E501 - """read_device_taint_rule # noqa: E501 - - read the specified DeviceTaintRule # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_device_taint_rule_with_http_info(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceTaintRule (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3DeviceTaintRule, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'pretty' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method read_device_taint_rule" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `read_device_taint_rule`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3DeviceTaintRule', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_resource_claim(self, name, namespace, **kwargs): # noqa: E501 - """read_namespaced_resource_claim # noqa: E501 - - read the specified ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_namespaced_resource_claim(name, namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceClaim - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.read_namespaced_resource_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 - - def read_namespaced_resource_claim_with_http_info(self, name, namespace, **kwargs): # noqa: E501 - """read_namespaced_resource_claim # noqa: E501 - - read the specified ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_namespaced_resource_claim_with_http_info(name, namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'namespace', - 'pretty' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method read_namespaced_resource_claim" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_claim`") # noqa: E501 - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_claim`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaim', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_resource_claim_status(self, name, namespace, **kwargs): # noqa: E501 - """read_namespaced_resource_claim_status # noqa: E501 - - read status of the specified ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_namespaced_resource_claim_status(name, namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceClaim - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.read_namespaced_resource_claim_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - - def read_namespaced_resource_claim_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 - """read_namespaced_resource_claim_status # noqa: E501 - - read status of the specified ResourceClaim # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_namespaced_resource_claim_status_with_http_info(name, namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'namespace', - 'pretty' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method read_namespaced_resource_claim_status" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_claim_status`") # noqa: E501 - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_claim_status`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaim', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_resource_claim_template(self, name, namespace, **kwargs): # noqa: E501 - """read_namespaced_resource_claim_template # noqa: E501 - - read the specified ResourceClaimTemplate # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_namespaced_resource_claim_template(name, namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaimTemplate (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceClaimTemplate - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.read_namespaced_resource_claim_template_with_http_info(name, namespace, **kwargs) # noqa: E501 - - def read_namespaced_resource_claim_template_with_http_info(self, name, namespace, **kwargs): # noqa: E501 - """read_namespaced_resource_claim_template # noqa: E501 - - read the specified ResourceClaimTemplate # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_namespaced_resource_claim_template_with_http_info(name, namespace, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaimTemplate (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'namespace', - 'pretty' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method read_namespaced_resource_claim_template" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_claim_template`") # noqa: E501 - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_claim_template`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceClaimTemplate', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_resource_slice(self, name, **kwargs): # noqa: E501 - """read_resource_slice # noqa: E501 - - read the specified ResourceSlice # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_resource_slice(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceSlice (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3ResourceSlice - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.read_resource_slice_with_http_info(name, **kwargs) # noqa: E501 - - def read_resource_slice_with_http_info(self, name, **kwargs): # noqa: E501 - """read_resource_slice # noqa: E501 - - read the specified ResourceSlice # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_resource_slice_with_http_info(name, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the ResourceSlice (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3ResourceSlice, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'pretty' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method read_resource_slice" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `read_resource_slice`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 - - # Authentication setting - auth_settings = ['BearerToken'] # noqa: E501 - - return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha3ResourceSlice', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_device_class(self, name, body, **kwargs): # noqa: E501 - """replace_device_class # noqa: E501 - - replace the specified DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_device_class(name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceClass (required) - :param V1alpha3DeviceClass body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: V1alpha3DeviceClass - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.replace_device_class_with_http_info(name, body, **kwargs) # noqa: E501 - - def replace_device_class_with_http_info(self, name, body, **kwargs): # noqa: E501 - """replace_device_class # noqa: E501 - - replace the specified DeviceClass # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_device_class_with_http_info(name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param str name: name of the DeviceClass (required) - :param V1alpha3DeviceClass body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(V1alpha3DeviceClass, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'name', - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_device_class" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `replace_device_class`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `replace_device_class`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -5456,14 +484,14 @@ def replace_device_class_with_http_info(self, name, body, **kwargs): # noqa: E5 auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}', 'PUT', + '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha3DeviceClass', # noqa: E501 + response_type='V1alpha3DeviceTaintRule', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5471,22 +499,16 @@ def replace_device_class_with_http_info(self, name, body, **kwargs): # noqa: E5 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def replace_device_taint_rule(self, name, body, **kwargs): # noqa: E501 - """replace_device_taint_rule # noqa: E501 + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 - replace the specified DeviceTaintRule # noqa: E501 + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_device_taint_rule(name, body, async_req=True) + >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the DeviceTaintRule (required) - :param V1alpha3DeviceTaintRule body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -5494,29 +516,23 @@ def replace_device_taint_rule(self, name, body, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1alpha3DeviceTaintRule + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.replace_device_taint_rule_with_http_info(name, body, **kwargs) # noqa: E501 + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - def replace_device_taint_rule_with_http_info(self, name, body, **kwargs): # noqa: E501 - """replace_device_taint_rule # noqa: E501 + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 - replace the specified DeviceTaintRule # noqa: E501 + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_device_taint_rule_with_http_info(name, body, async_req=True) + >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the DeviceTaintRule (required) - :param V1alpha3DeviceTaintRule body: (required) - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5526,7 +542,7 @@ def replace_device_taint_rule_with_http_info(self, name, body, **kwargs): # noq number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1alpha3DeviceTaintRule, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -5534,12 +550,6 @@ def replace_device_taint_rule_with_http_info(self, name, body, **kwargs): # noq local_var_params = locals() all_params = [ - 'name', - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation' ] all_params.extend( [ @@ -5554,34 +564,16 @@ def replace_device_taint_rule_with_http_info(self, name, body, **kwargs): # noq if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method replace_device_taint_rule" % key + " to method get_api_resources" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `replace_device_taint_rule`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `replace_device_taint_rule`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 header_params = {} @@ -5589,8 +581,6 @@ def replace_device_taint_rule_with_http_info(self, name, body, **kwargs): # noq local_var_files = {} body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 @@ -5599,14 +589,14 @@ def replace_device_taint_rule_with_http_info(self, name, body, **kwargs): # noq auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}', 'PUT', + '/apis/resource.k8s.io/v1alpha3/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha3DeviceTaintRule', # noqa: E501 + response_type='V1APIResourceList', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5614,23 +604,27 @@ def replace_device_taint_rule_with_http_info(self, name, body, **kwargs): # noq _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_resource_claim(self, name, namespace, body, **kwargs): # noqa: E501 - """replace_namespaced_resource_claim # noqa: E501 + def list_device_taint_rule(self, **kwargs): # noqa: E501 + """list_device_taint_rule # noqa: E501 - replace the specified ResourceClaim # noqa: E501 + list or watch objects of kind DeviceTaintRule # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_namespaced_resource_claim(name, namespace, body, async_req=True) + >>> thread = api.list_device_taint_rule(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha3ResourceClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -5638,30 +632,34 @@ def replace_namespaced_resource_claim(self, name, namespace, body, **kwargs): # number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1alpha3ResourceClaim + :return: V1alpha3DeviceTaintRuleList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.replace_namespaced_resource_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 + return self.list_device_taint_rule_with_http_info(**kwargs) # noqa: E501 - def replace_namespaced_resource_claim_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 - """replace_namespaced_resource_claim # noqa: E501 + def list_device_taint_rule_with_http_info(self, **kwargs): # noqa: E501 + """list_device_taint_rule # noqa: E501 - replace the specified ResourceClaim # noqa: E501 + list or watch objects of kind DeviceTaintRule # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_namespaced_resource_claim_with_http_info(name, namespace, body, async_req=True) + >>> thread = api.list_device_taint_rule_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha3ResourceClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5671,7 +669,7 @@ def replace_namespaced_resource_claim_with_http_info(self, name, namespace, body number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1alpha3DeviceTaintRuleList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -5679,13 +677,17 @@ def replace_namespaced_resource_claim_with_http_info(self, name, namespace, body local_var_params = locals() all_params = [ - 'name', - 'namespace', - 'body', 'pretty', - 'dry_run', - 'field_manager', - 'field_validation' + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'resource_version_match', + 'send_initial_events', + 'timeout_seconds', + 'watch' ] all_params.extend( [ @@ -5700,40 +702,38 @@ def replace_namespaced_resource_claim_with_http_info(self, name, namespace, body if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_resource_claim" % key + " to method list_device_taint_rule" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_claim`") # noqa: E501 - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_claim`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_claim`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -5741,24 +741,22 @@ def replace_namespaced_resource_claim_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501 # Authentication setting auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}', 'PUT', + '/apis/resource.k8s.io/v1alpha3/devicetaintrules', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha3ResourceClaim', # noqa: E501 + response_type='V1alpha3DeviceTaintRuleList', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5766,23 +764,23 @@ def replace_namespaced_resource_claim_with_http_info(self, name, namespace, body _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_resource_claim_status(self, name, namespace, body, **kwargs): # noqa: E501 - """replace_namespaced_resource_claim_status # noqa: E501 + def patch_device_taint_rule(self, name, body, **kwargs): # noqa: E501 + """patch_device_taint_rule # noqa: E501 - replace status of the specified ResourceClaim # noqa: E501 + partially update the specified DeviceTaintRule # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_namespaced_resource_claim_status(name, namespace, body, async_req=True) + >>> thread = api.patch_device_taint_rule(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha3ResourceClaim body: (required) + :param str name: name of the DeviceTaintRule (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -5790,30 +788,30 @@ def replace_namespaced_resource_claim_status(self, name, namespace, body, **kwar number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1alpha3ResourceClaim + :return: V1alpha3DeviceTaintRule If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 + return self.patch_device_taint_rule_with_http_info(name, body, **kwargs) # noqa: E501 - def replace_namespaced_resource_claim_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 - """replace_namespaced_resource_claim_status # noqa: E501 + def patch_device_taint_rule_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_device_taint_rule # noqa: E501 - replace status of the specified ResourceClaim # noqa: E501 + partially update the specified DeviceTaintRule # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, async_req=True) + >>> thread = api.patch_device_taint_rule_with_http_info(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha3ResourceClaim body: (required) + :param str name: name of the DeviceTaintRule (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5823,7 +821,7 @@ def replace_namespaced_resource_claim_status_with_http_info(self, name, namespac number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1alpha3DeviceTaintRule, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -5832,12 +830,12 @@ def replace_namespaced_resource_claim_status_with_http_info(self, name, namespac all_params = [ 'name', - 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', - 'field_validation' + 'field_validation', + 'force' ] all_params.extend( [ @@ -5852,30 +850,24 @@ def replace_namespaced_resource_claim_status_with_http_info(self, name, namespac if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_resource_claim_status" % key + " to method patch_device_taint_rule" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_claim_status`") # noqa: E501 - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_claim_status`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_device_taint_rule`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_claim_status`") # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_device_taint_rule`") # noqa: E501 collection_formats = {} path_params = {} if 'name' in local_var_params: path_params['name'] = local_var_params['name'] # noqa: E501 - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 @@ -5886,6 +878,8 @@ def replace_namespaced_resource_claim_status_with_http_info(self, name, namespac query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -5899,18 +893,22 @@ def replace_namespaced_resource_claim_status_with_http_info(self, name, namespac header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 + # Authentication setting auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status', 'PUT', + '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha3ResourceClaim', # noqa: E501 + response_type='V1alpha3DeviceTaintRule', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5918,23 +916,18 @@ def replace_namespaced_resource_claim_status_with_http_info(self, name, namespac _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_resource_claim_template(self, name, namespace, body, **kwargs): # noqa: E501 - """replace_namespaced_resource_claim_template # noqa: E501 + def read_device_taint_rule(self, name, **kwargs): # noqa: E501 + """read_device_taint_rule # noqa: E501 - replace the specified ResourceClaimTemplate # noqa: E501 + read the specified DeviceTaintRule # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_namespaced_resource_claim_template(name, namespace, body, async_req=True) + >>> thread = api.read_device_taint_rule(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaimTemplate (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha3ResourceClaimTemplate body: (required) + :param str name: name of the DeviceTaintRule (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -5942,30 +935,25 @@ def replace_namespaced_resource_claim_template(self, name, namespace, body, **kw number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1alpha3ResourceClaimTemplate + :return: V1alpha3DeviceTaintRule If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 + return self.read_device_taint_rule_with_http_info(name, **kwargs) # noqa: E501 - def replace_namespaced_resource_claim_template_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 - """replace_namespaced_resource_claim_template # noqa: E501 + def read_device_taint_rule_with_http_info(self, name, **kwargs): # noqa: E501 + """read_device_taint_rule # noqa: E501 - replace the specified ResourceClaimTemplate # noqa: E501 + read the specified DeviceTaintRule # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, async_req=True) + >>> thread = api.read_device_taint_rule_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ResourceClaimTemplate (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha3ResourceClaimTemplate body: (required) + :param str name: name of the DeviceTaintRule (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5975,7 +963,7 @@ def replace_namespaced_resource_claim_template_with_http_info(self, name, namesp number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1alpha3ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1alpha3DeviceTaintRule, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -5984,12 +972,7 @@ def replace_namespaced_resource_claim_template_with_http_info(self, name, namesp all_params = [ 'name', - 'namespace', - 'body', - 'pretty', - 'dry_run', - 'field_manager', - 'field_validation' + 'pretty' ] all_params.extend( [ @@ -6004,40 +987,24 @@ def replace_namespaced_resource_claim_template_with_http_info(self, name, namesp if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_resource_claim_template" % key + " to method read_device_taint_rule" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_claim_template`") # noqa: E501 - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_claim_template`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_claim_template`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_device_taint_rule`") # noqa: E501 collection_formats = {} path_params = {} if 'name' in local_var_params: path_params['name'] = local_var_params['name'] # noqa: E501 - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 - query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 - query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 header_params = {} @@ -6045,8 +1012,6 @@ def replace_namespaced_resource_claim_template_with_http_info(self, name, namesp local_var_files = {} body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 @@ -6055,14 +1020,14 @@ def replace_namespaced_resource_claim_template_with_http_info(self, name, namesp auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}', 'PUT', + '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha3ResourceClaimTemplate', # noqa: E501 + response_type='V1alpha3DeviceTaintRule', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -6070,18 +1035,18 @@ def replace_namespaced_resource_claim_template_with_http_info(self, name, namesp _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def replace_resource_slice(self, name, body, **kwargs): # noqa: E501 - """replace_resource_slice # noqa: E501 + def replace_device_taint_rule(self, name, body, **kwargs): # noqa: E501 + """replace_device_taint_rule # noqa: E501 - replace the specified ResourceSlice # noqa: E501 + replace the specified DeviceTaintRule # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_resource_slice(name, body, async_req=True) + >>> thread = api.replace_device_taint_rule(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ResourceSlice (required) - :param V1alpha3ResourceSlice body: (required) + :param str name: name of the DeviceTaintRule (required) + :param V1alpha3DeviceTaintRule body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. @@ -6093,25 +1058,25 @@ def replace_resource_slice(self, name, body, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1alpha3ResourceSlice + :return: V1alpha3DeviceTaintRule If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.replace_resource_slice_with_http_info(name, body, **kwargs) # noqa: E501 + return self.replace_device_taint_rule_with_http_info(name, body, **kwargs) # noqa: E501 - def replace_resource_slice_with_http_info(self, name, body, **kwargs): # noqa: E501 - """replace_resource_slice # noqa: E501 + def replace_device_taint_rule_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_device_taint_rule # noqa: E501 - replace the specified ResourceSlice # noqa: E501 + replace the specified DeviceTaintRule # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_resource_slice_with_http_info(name, body, async_req=True) + >>> thread = api.replace_device_taint_rule_with_http_info(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the ResourceSlice (required) - :param V1alpha3ResourceSlice body: (required) + :param str name: name of the DeviceTaintRule (required) + :param V1alpha3DeviceTaintRule body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. @@ -6125,7 +1090,7 @@ def replace_resource_slice_with_http_info(self, name, body, **kwargs): # noqa: number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1alpha3ResourceSlice, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1alpha3DeviceTaintRule, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -6153,18 +1118,18 @@ def replace_resource_slice_with_http_info(self, name, body, **kwargs): # noqa: if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method replace_resource_slice" % key + " to method replace_device_taint_rule" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `replace_resource_slice`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_device_taint_rule`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `replace_resource_slice`") # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_device_taint_rule`") # noqa: E501 collection_formats = {} @@ -6198,14 +1163,14 @@ def replace_resource_slice_with_http_info(self, name, body, **kwargs): # noqa: auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}', 'PUT', + '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha3ResourceSlice', # noqa: E501 + response_type='V1alpha3DeviceTaintRule', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 diff --git a/kubernetes/client/api/resource_v1beta1_api.py b/kubernetes/client/api/resource_v1beta1_api.py index 7fdc99aac..85432de61 100644 --- a/kubernetes/client/api/resource_v1beta1_api.py +++ b/kubernetes/client/api/resource_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/resource_v1beta2_api.py b/kubernetes/client/api/resource_v1beta2_api.py index e4dc3a318..ed48b2874 100644 --- a/kubernetes/client/api/resource_v1beta2_api.py +++ b/kubernetes/client/api/resource_v1beta2_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/scheduling_api.py b/kubernetes/client/api/scheduling_api.py index d24032c23..1faa1bf52 100644 --- a/kubernetes/client/api/scheduling_api.py +++ b/kubernetes/client/api/scheduling_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/scheduling_v1_api.py b/kubernetes/client/api/scheduling_v1_api.py index 6e38f1e21..2bba53658 100644 --- a/kubernetes/client/api/scheduling_v1_api.py +++ b/kubernetes/client/api/scheduling_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/storage_api.py b/kubernetes/client/api/storage_api.py index d40cee988..e11a39806 100644 --- a/kubernetes/client/api/storage_api.py +++ b/kubernetes/client/api/storage_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/storage_v1_api.py b/kubernetes/client/api/storage_v1_api.py index 984e488d9..1583b1632 100644 --- a/kubernetes/client/api/storage_v1_api.py +++ b/kubernetes/client/api/storage_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -715,6 +715,140 @@ def create_volume_attachment_with_http_info(self, body, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) + def create_volume_attributes_class(self, body, **kwargs): # noqa: E501 + """create_volume_attributes_class # noqa: E501 + + create a VolumeAttributesClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_volume_attributes_class(body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param V1VolumeAttributesClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1VolumeAttributesClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.create_volume_attributes_class_with_http_info(body, **kwargs) # noqa: E501 + + def create_volume_attributes_class_with_http_info(self, body, **kwargs): # noqa: E501 + """create_volume_attributes_class # noqa: E501 + + create a VolumeAttributesClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_volume_attributes_class_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param V1VolumeAttributesClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttributesClass, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_volume_attributes_class" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_volume_attributes_class`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattributesclasses', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttributesClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_csi_driver(self, **kwargs): # noqa: E501 """delete_collection_csi_driver # noqa: E501 @@ -1624,23 +1758,30 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def delete_csi_driver(self, name, **kwargs): # noqa: E501 - """delete_csi_driver # noqa: E501 + def delete_collection_volume_attributes_class(self, **kwargs): # noqa: E501 + """delete_collection_volume_attributes_class # noqa: E501 - delete a CSIDriver # noqa: E501 + delete collection of VolumeAttributesClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_csi_driver(name, async_req=True) + >>> thread = api.delete_collection_volume_attributes_class(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the CSIDriver (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param int 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. :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. :param bool 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. :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param V1DeleteOptions body: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response @@ -1649,30 +1790,37 @@ def delete_csi_driver(self, name, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1CSIDriver + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.delete_csi_driver_with_http_info(name, **kwargs) # noqa: E501 + return self.delete_collection_volume_attributes_class_with_http_info(**kwargs) # noqa: E501 - def delete_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 - """delete_csi_driver # noqa: E501 + def delete_collection_volume_attributes_class_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_volume_attributes_class # noqa: E501 - delete a CSIDriver # noqa: E501 + delete collection of VolumeAttributesClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_csi_driver_with_http_info(name, async_req=True) + >>> thread = api.delete_collection_volume_attributes_class_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the CSIDriver (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param int 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. :param bool 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 + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. :param bool 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. :param str 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. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param V1DeleteOptions body: :param _return_http_data_only: response data without head status code and headers @@ -1683,7 +1831,7 @@ def delete_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1CSIDriver, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -1691,13 +1839,20 @@ def delete_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - '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', + 'timeout_seconds', 'body' ] all_params.extend( @@ -1713,34 +1868,44 @@ def delete_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method delete_csi_driver" % key + " to method delete_collection_volume_attributes_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `delete_csi_driver`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 header_params = {} @@ -1758,14 +1923,14 @@ def delete_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/storage.k8s.io/v1/csidrivers/{name}', 'DELETE', + '/apis/storage.k8s.io/v1/volumeattributesclasses', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1CSIDriver', # noqa: E501 + response_type='V1Status', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1773,17 +1938,17 @@ def delete_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def delete_csi_node(self, name, **kwargs): # noqa: E501 - """delete_csi_node # noqa: E501 + def delete_csi_driver(self, name, **kwargs): # noqa: E501 + """delete_csi_driver # noqa: E501 - delete a CSINode # noqa: E501 + delete a CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_csi_node(name, async_req=True) + >>> thread = api.delete_csi_driver(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the CSINode (required) + :param str name: name of the CSIDriver (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int 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. @@ -1798,24 +1963,24 @@ def delete_csi_node(self, name, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1CSINode + :return: V1CSIDriver If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.delete_csi_node_with_http_info(name, **kwargs) # noqa: E501 + return self.delete_csi_driver_with_http_info(name, **kwargs) # noqa: E501 - def delete_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 - """delete_csi_node # noqa: E501 + def delete_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_csi_driver # noqa: E501 - delete a CSINode # noqa: E501 + delete a CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_csi_node_with_http_info(name, async_req=True) + >>> thread = api.delete_csi_driver_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the CSINode (required) + :param str name: name of the CSIDriver (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int 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. @@ -1832,7 +1997,7 @@ def delete_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1CSINode, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1CSIDriver, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -1862,14 +2027,14 @@ def delete_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method delete_csi_node" % key + " to method delete_csi_driver" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `delete_csi_node`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_csi_driver`") # noqa: E501 collection_formats = {} @@ -1907,14 +2072,14 @@ def delete_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/storage.k8s.io/v1/csinodes/{name}', 'DELETE', + '/apis/storage.k8s.io/v1/csidrivers/{name}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1CSINode', # noqa: E501 + response_type='V1CSIDriver', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1922,18 +2087,17 @@ def delete_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_csi_storage_capacity(self, name, namespace, **kwargs): # noqa: E501 - """delete_namespaced_csi_storage_capacity # noqa: E501 + def delete_csi_node(self, name, **kwargs): # noqa: E501 + """delete_csi_node # noqa: E501 - delete a CSIStorageCapacity # noqa: E501 + delete a CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_namespaced_csi_storage_capacity(name, namespace, async_req=True) + >>> thread = api.delete_csi_node(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the CSIStorageCapacity (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the CSINode (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int 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. @@ -1948,25 +2112,24 @@ def delete_namespaced_csi_storage_capacity(self, name, namespace, **kwargs): # number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1Status + :return: V1CSINode If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.delete_namespaced_csi_storage_capacity_with_http_info(name, namespace, **kwargs) # noqa: E501 + return self.delete_csi_node_with_http_info(name, **kwargs) # noqa: E501 - def delete_namespaced_csi_storage_capacity_with_http_info(self, name, namespace, **kwargs): # noqa: E501 - """delete_namespaced_csi_storage_capacity # noqa: E501 + def delete_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_csi_node # noqa: E501 - delete a CSIStorageCapacity # noqa: E501 + delete a CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_namespaced_csi_storage_capacity_with_http_info(name, namespace, async_req=True) + >>> thread = api.delete_csi_node_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the CSIStorageCapacity (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the CSINode (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int 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. @@ -1983,7 +2146,7 @@ def delete_namespaced_csi_storage_capacity_with_http_info(self, name, namespace, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1CSINode, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -1992,7 +2155,6 @@ def delete_namespaced_csi_storage_capacity_with_http_info(self, name, namespace, all_params = [ 'name', - 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', @@ -2014,26 +2176,178 @@ def delete_namespaced_csi_storage_capacity_with_http_info(self, name, namespace, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_csi_storage_capacity" % key + " to method delete_csi_node" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_csi_storage_capacity`") # noqa: E501 - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_csi_storage_capacity`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_csi_node`") # noqa: E501 collection_formats = {} path_params = {} if 'name' in local_var_params: path_params['name'] = local_var_params['name'] # noqa: E501 - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/csinodes/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1CSINode', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_csi_storage_capacity(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_csi_storage_capacity # noqa: E501 + + delete a CSIStorageCapacity # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_namespaced_csi_storage_capacity(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the CSIStorageCapacity (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.delete_namespaced_csi_storage_capacity_with_http_info(name, namespace, **kwargs) # noqa: E501 + + def delete_namespaced_csi_storage_capacity_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_csi_storage_capacity # noqa: E501 + + delete a CSIStorageCapacity # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_namespaced_csi_storage_capacity_with_http_info(name, namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the CSIStorageCapacity (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'ignore_store_read_error_with_cluster_breaking_potential', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_csi_storage_capacity" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_csi_storage_capacity`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_csi_storage_capacity`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 @@ -2378,6 +2692,155 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) + def delete_volume_attributes_class(self, name, **kwargs): # noqa: E501 + """delete_volume_attributes_class # noqa: E501 + + delete a VolumeAttributesClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_volume_attributes_class(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the VolumeAttributesClass (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1VolumeAttributesClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.delete_volume_attributes_class_with_http_info(name, **kwargs) # noqa: E501 + + def delete_volume_attributes_class_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_volume_attributes_class # noqa: E501 + + delete a VolumeAttributesClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_volume_attributes_class_with_http_info(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the VolumeAttributesClass (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param int 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. + :param bool 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 + :param bool 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. + :param str 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. + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttributesClass, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'ignore_store_read_error_with_cluster_breaking_potential', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_volume_attributes_class" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_volume_attributes_class`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501 + query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501 + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttributesClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_resources(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -2838,22 +3301,184 @@ def list_csi_storage_capacity_for_all_namespaces(self, **kwargs): # noqa: E501 kwargs['_return_http_data_only'] = True return self.list_csi_storage_capacity_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - def list_csi_storage_capacity_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 - """list_csi_storage_capacity_for_all_namespaces # noqa: E501 + def list_csi_storage_capacity_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_csi_storage_capacity_for_all_namespaces # noqa: E501 + + list or watch objects of kind CSIStorageCapacity # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_csi_storage_capacity_for_all_namespaces_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1CSIStorageCapacityList, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'resource_version_match', + 'send_initial_events', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_csi_storage_capacity_for_all_namespaces" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 + query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501 + if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501 + query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501 + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + 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']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/csistoragecapacities', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1CSIStorageCapacityList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_csi_storage_capacity(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_csi_storage_capacity # noqa: E501 + + list or watch objects of kind CSIStorageCapacity # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_namespaced_csi_storage_capacity(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param bool 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. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str 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 + :param str 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 + :param bool 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. + :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1CSIStorageCapacityList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.list_namespaced_csi_storage_capacity_with_http_info(namespace, **kwargs) # noqa: E501 + + def list_namespaced_csi_storage_capacity_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_csi_storage_capacity # noqa: E501 list or watch objects of kind CSIStorageCapacity # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_csi_storage_capacity_for_all_namespaces_with_http_info(async_req=True) + >>> thread = api.list_namespaced_csi_storage_capacity_with_http_info(namespace, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param bool 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. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str 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 :param str 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 :param bool 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. @@ -2876,12 +3501,13 @@ def list_csi_storage_capacity_for_all_namespaces_with_http_info(self, **kwargs): local_var_params = locals() all_params = [ + 'namespace', + 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', - 'pretty', 'resource_version', 'resource_version_match', 'send_initial_events', @@ -2901,16 +3527,24 @@ def list_csi_storage_capacity_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method list_csi_storage_capacity_for_all_namespaces" % key + " to method list_namespaced_csi_storage_capacity" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_csi_storage_capacity`") # noqa: E501 collection_formats = {} path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 @@ -2921,8 +3555,6 @@ def list_csi_storage_capacity_for_all_namespaces_with_http_info(self, **kwargs): query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501 @@ -2948,7 +3580,7 @@ def list_csi_storage_capacity_for_all_namespaces_with_http_info(self, **kwargs): auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/storage.k8s.io/v1/csistoragecapacities', 'GET', + '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities', 'GET', path_params, query_params, header_params, @@ -2963,17 +3595,16 @@ def list_csi_storage_capacity_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_csi_storage_capacity(self, namespace, **kwargs): # noqa: E501 - """list_namespaced_csi_storage_capacity # noqa: E501 + def list_storage_class(self, **kwargs): # noqa: E501 + """list_storage_class # noqa: E501 - list or watch objects of kind CSIStorageCapacity # noqa: E501 + list or watch objects of kind StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_namespaced_csi_storage_capacity(namespace, async_req=True) + >>> thread = api.list_storage_class(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param bool 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. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -2992,24 +3623,23 @@ def list_namespaced_csi_storage_capacity(self, namespace, **kwargs): # noqa: E5 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1CSIStorageCapacityList + :return: V1StorageClassList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.list_namespaced_csi_storage_capacity_with_http_info(namespace, **kwargs) # noqa: E501 + return self.list_storage_class_with_http_info(**kwargs) # noqa: E501 - def list_namespaced_csi_storage_capacity_with_http_info(self, namespace, **kwargs): # noqa: E501 - """list_namespaced_csi_storage_capacity # noqa: E501 + def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 + """list_storage_class # noqa: E501 - list or watch objects of kind CSIStorageCapacity # noqa: E501 + list or watch objects of kind StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_namespaced_csi_storage_capacity_with_http_info(namespace, async_req=True) + >>> thread = api.list_storage_class_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param bool 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. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -3030,7 +3660,7 @@ def list_namespaced_csi_storage_capacity_with_http_info(self, namespace, **kwarg number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1CSIStorageCapacityList, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1StorageClassList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -3038,7 +3668,6 @@ def list_namespaced_csi_storage_capacity_with_http_info(self, namespace, **kwarg local_var_params = locals() all_params = [ - 'namespace', 'pretty', 'allow_watch_bookmarks', '_continue', @@ -3064,20 +3693,14 @@ def list_namespaced_csi_storage_capacity_with_http_info(self, namespace, **kwarg if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_csi_storage_capacity" % key + " to method list_storage_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_csi_storage_capacity`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 @@ -3117,14 +3740,14 @@ def list_namespaced_csi_storage_capacity_with_http_info(self, namespace, **kwarg auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities', 'GET', + '/apis/storage.k8s.io/v1/storageclasses', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1CSIStorageCapacityList', # noqa: E501 + response_type='V1StorageClassList', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -3132,13 +3755,13 @@ def list_namespaced_csi_storage_capacity_with_http_info(self, namespace, **kwarg _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def list_storage_class(self, **kwargs): # noqa: E501 - """list_storage_class # noqa: E501 + def list_volume_attachment(self, **kwargs): # noqa: E501 + """list_volume_attachment # noqa: E501 - list or watch objects of kind StorageClass # noqa: E501 + list or watch objects of kind VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_storage_class(async_req=True) + >>> thread = api.list_volume_attachment(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -3160,20 +3783,20 @@ def list_storage_class(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1StorageClassList + :return: V1VolumeAttachmentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.list_storage_class_with_http_info(**kwargs) # noqa: E501 + return self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 - def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 - """list_storage_class # noqa: E501 + def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 + """list_volume_attachment # noqa: E501 - list or watch objects of kind StorageClass # noqa: E501 + list or watch objects of kind VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_storage_class_with_http_info(async_req=True) + >>> thread = api.list_volume_attachment_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -3197,7 +3820,7 @@ def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1StorageClassList, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1VolumeAttachmentList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -3230,7 +3853,7 @@ def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method list_storage_class" % key + " to method list_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -3277,14 +3900,14 @@ def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/storage.k8s.io/v1/storageclasses', 'GET', + '/apis/storage.k8s.io/v1/volumeattachments', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1StorageClassList', # noqa: E501 + response_type='V1VolumeAttachmentList', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -3292,13 +3915,13 @@ def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def list_volume_attachment(self, **kwargs): # noqa: E501 - """list_volume_attachment # noqa: E501 + def list_volume_attributes_class(self, **kwargs): # noqa: E501 + """list_volume_attributes_class # noqa: E501 - list or watch objects of kind VolumeAttachment # noqa: E501 + list or watch objects of kind VolumeAttributesClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_volume_attachment(async_req=True) + >>> thread = api.list_volume_attributes_class(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -3320,20 +3943,20 @@ def list_volume_attachment(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1VolumeAttachmentList + :return: V1VolumeAttributesClassList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 + return self.list_volume_attributes_class_with_http_info(**kwargs) # noqa: E501 - def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 - """list_volume_attachment # noqa: E501 + def list_volume_attributes_class_with_http_info(self, **kwargs): # noqa: E501 + """list_volume_attributes_class # noqa: E501 - list or watch objects of kind VolumeAttachment # noqa: E501 + list or watch objects of kind VolumeAttributesClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_volume_attachment_with_http_info(async_req=True) + >>> thread = api.list_volume_attributes_class_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -3357,7 +3980,7 @@ def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1VolumeAttachmentList, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1VolumeAttributesClassList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -3390,7 +4013,7 @@ def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method list_volume_attachment" % key + " to method list_volume_attributes_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -3437,14 +4060,14 @@ def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/storage.k8s.io/v1/volumeattachments', 'GET', + '/apis/storage.k8s.io/v1/volumeattributesclasses', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VolumeAttachmentList', # noqa: E501 + response_type='V1VolumeAttributesClassList', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -4103,10 +4726,162 @@ def patch_volume_attachment(self, name, body, **kwargs): # noqa: E501 def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_volume_attachment # noqa: E501 - partially update the specified VolumeAttachment # noqa: E501 + partially update the specified VolumeAttachment # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_volume_attachment_with_http_info(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the VolumeAttachment (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_volume_attachment" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattachments/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_volume_attachment_status(self, name, body, **kwargs): # noqa: E501 + """patch_volume_attachment_status # noqa: E501 + + partially update status of the specified VolumeAttachment # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_volume_attachment_status(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the VolumeAttachment (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param bool 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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1VolumeAttachment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.patch_volume_attachment_status_with_http_info(name, body, **kwargs) # noqa: E501 + + def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_volume_attachment_status # noqa: E501 + + partially update status of the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_volume_attachment_with_http_info(name, body, async_req=True) + >>> thread = api.patch_volume_attachment_status_with_http_info(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -4155,18 +4930,18 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method patch_volume_attachment" % key + " to method patch_volume_attachment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_volume_attachment_status`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_volume_attachment_status`") # noqa: E501 collection_formats = {} @@ -4206,7 +4981,7 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/storage.k8s.io/v1/volumeattachments/{name}', 'PATCH', + '/apis/storage.k8s.io/v1/volumeattachments/{name}/status', 'PATCH', path_params, query_params, header_params, @@ -4221,17 +4996,17 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def patch_volume_attachment_status(self, name, body, **kwargs): # noqa: E501 - """patch_volume_attachment_status # noqa: E501 + def patch_volume_attributes_class(self, name, body, **kwargs): # noqa: E501 + """patch_volume_attributes_class # noqa: E501 - partially update status of the specified VolumeAttachment # noqa: E501 + partially update the specified VolumeAttributesClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_volume_attachment_status(name, body, async_req=True) + >>> thread = api.patch_volume_attributes_class(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the VolumeAttachment (required) + :param str name: name of the VolumeAttributesClass (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4245,24 +5020,24 @@ def patch_volume_attachment_status(self, name, body, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: V1VolumeAttachment + :return: V1VolumeAttributesClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.patch_volume_attachment_status_with_http_info(name, body, **kwargs) # noqa: E501 + return self.patch_volume_attributes_class_with_http_info(name, body, **kwargs) # noqa: E501 - def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): # noqa: E501 - """patch_volume_attachment_status # noqa: E501 + def patch_volume_attributes_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_volume_attributes_class # noqa: E501 - partially update status of the specified VolumeAttachment # noqa: E501 + partially update the specified VolumeAttributesClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_volume_attachment_status_with_http_info(name, body, async_req=True) + >>> thread = api.patch_volume_attributes_class_with_http_info(name, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str name: name of the VolumeAttachment (required) + :param str name: name of the VolumeAttributesClass (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4278,7 +5053,7 @@ def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(V1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(V1VolumeAttributesClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -4307,18 +5082,18 @@ def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method patch_volume_attachment_status" % key + " to method patch_volume_attributes_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `patch_volume_attachment_status`") # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_volume_attributes_class`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `patch_volume_attachment_status`") # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_volume_attributes_class`") # noqa: E501 collection_formats = {} @@ -4358,14 +5133,14 @@ def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/storage.k8s.io/v1/volumeattachments/{name}/status', 'PATCH', + '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VolumeAttachment', # noqa: E501 + response_type='V1VolumeAttributesClass', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5096,6 +5871,125 @@ def read_volume_attachment_status_with_http_info(self, name, **kwargs): # noqa: _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) + def read_volume_attributes_class(self, name, **kwargs): # noqa: E501 + """read_volume_attributes_class # noqa: E501 + + read the specified VolumeAttributesClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_volume_attributes_class(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the VolumeAttributesClass (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1VolumeAttributesClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.read_volume_attributes_class_with_http_info(name, **kwargs) # noqa: E501 + + def read_volume_attributes_class_with_http_info(self, name, **kwargs): # noqa: E501 + """read_volume_attributes_class # noqa: E501 + + read the specified VolumeAttributesClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_volume_attributes_class_with_http_info(name, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the VolumeAttributesClass (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttributesClass, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method read_volume_attributes_class" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_volume_attributes_class`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttributesClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + def replace_csi_driver(self, name, body, **kwargs): # noqa: E501 """replace_csi_driver # noqa: E501 @@ -5962,3 +6856,146 @@ def replace_volume_attachment_status_with_http_info(self, name, body, **kwargs): _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) + + def replace_volume_attributes_class(self, name, body, **kwargs): # noqa: E501 + """replace_volume_attributes_class # noqa: E501 + + replace the specified VolumeAttributesClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_volume_attributes_class(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the VolumeAttributesClass (required) + :param V1VolumeAttributesClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: V1VolumeAttributesClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.replace_volume_attributes_class_with_http_info(name, body, **kwargs) # noqa: E501 + + def replace_volume_attributes_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_volume_attributes_class # noqa: E501 + + replace the specified VolumeAttributesClass # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_volume_attributes_class_with_http_info(name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str name: name of the VolumeAttributesClass (required) + :param V1VolumeAttributesClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttributesClass, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'field_validation' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_volume_attributes_class" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_volume_attributes_class`") # noqa: E501 + # verify the required parameter 'body' is set + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_volume_attributes_class`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501 + query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttributesClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/storage_v1alpha1_api.py b/kubernetes/client/api/storage_v1alpha1_api.py index 1b8b6bf99..4d4ecdd57 100644 --- a/kubernetes/client/api/storage_v1alpha1_api.py +++ b/kubernetes/client/api/storage_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/storage_v1beta1_api.py b/kubernetes/client/api/storage_v1beta1_api.py index c52d22cc7..aff2c50d4 100644 --- a/kubernetes/client/api/storage_v1beta1_api.py +++ b/kubernetes/client/api/storage_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/storagemigration_api.py b/kubernetes/client/api/storagemigration_api.py index 52b944af0..b911ee86c 100644 --- a/kubernetes/client/api/storagemigration_api.py +++ b/kubernetes/client/api/storagemigration_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/storagemigration_v1alpha1_api.py b/kubernetes/client/api/storagemigration_v1alpha1_api.py index 9d40acef9..0103fd55d 100644 --- a/kubernetes/client/api/storagemigration_v1alpha1_api.py +++ b/kubernetes/client/api/storagemigration_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/version_api.py b/kubernetes/client/api/version_api.py index 47f385e62..d72219076 100644 --- a/kubernetes/client/api/version_api.py +++ b/kubernetes/client/api/version_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api/well_known_api.py b/kubernetes/client/api/well_known_api.py index 23acb791f..e6491bc46 100644 --- a/kubernetes/client/api/well_known_api.py +++ b/kubernetes/client/api/well_known_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/api_client.py b/kubernetes/client/api_client.py index 29863f542..1f7c7b81e 100644 --- a/kubernetes/client/api_client.py +++ b/kubernetes/client/api_client.py @@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/33.0.0+snapshot/python' + self.user_agent = 'OpenAPI-Generator/34.0.0+snapshot/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/kubernetes/client/configuration.py b/kubernetes/client/configuration.py index f6a59079b..f2460998b 100644 --- a/kubernetes/client/configuration.py +++ b/kubernetes/client/configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -17,10 +17,10 @@ import multiprocessing import sys import urllib3 -import os import six from six.moves import http_client as httplib +import os class Configuration(object): @@ -159,15 +159,18 @@ def __init__(self, host="http://localhost", """ self.proxy = None - if(os.getenv("HTTPS_PROXY")):self.proxy=os.getenv("HTTPS_PROXY") - if(os.getenv("https_proxy")):self.proxy=os.getenv("https_proxy") - if(os.getenv("HTTP_PROXY")):self.proxy=os.getenv("HTTP_PROXY") - if(os.getenv("http_proxy")):self.proxy=os.getenv("http_proxy") +# Load proxy from environment variables (if set) + if os.getenv("HTTPS_PROXY"): self.proxy = os.getenv("HTTPS_PROXY") + if os.getenv("https_proxy"): self.proxy = os.getenv("https_proxy") + if os.getenv("HTTP_PROXY"): self.proxy = os.getenv("HTTP_PROXY") + if os.getenv("http_proxy"): self.proxy = os.getenv("http_proxy") + self.no_proxy = None + # Load no_proxy from environment variables (if set) + if os.getenv("NO_PROXY"): self.no_proxy = os.getenv("NO_PROXY") + if os.getenv("no_proxy"): self.no_proxy = os.getenv("no_proxy") """Proxy URL """ self.no_proxy = None - if(os.getenv("NO_PROXY")):self.no_proxy=os.getenv("NO_PROXY") - if(os.getenv("no_proxy")):self.no_proxy=os.getenv("no_proxy") """bypass proxy for host in the no_proxy list. """ self.proxy_headers = None @@ -360,8 +363,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: release-1.33\n"\ - "SDK Package Version: 33.0.0+snapshot".\ + "Version of the API: release-1.34\n"\ + "SDK Package Version: 34.0.0+snapshot".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/kubernetes/client/exceptions.py b/kubernetes/client/exceptions.py index 092ba0c6a..51856fac2 100644 --- a/kubernetes/client/exceptions.py +++ b/kubernetes/client/exceptions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/__init__.py b/kubernetes/client/models/__init__.py index 880798fba..d51e63e6c 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -24,12 +24,14 @@ from kubernetes.client.models.core_v1_event import CoreV1Event from kubernetes.client.models.core_v1_event_list import CoreV1EventList from kubernetes.client.models.core_v1_event_series import CoreV1EventSeries +from kubernetes.client.models.core_v1_resource_claim import CoreV1ResourceClaim from kubernetes.client.models.discovery_v1_endpoint_port import DiscoveryV1EndpointPort from kubernetes.client.models.events_v1_event import EventsV1Event from kubernetes.client.models.events_v1_event_list import EventsV1EventList from kubernetes.client.models.events_v1_event_series import EventsV1EventSeries from kubernetes.client.models.flowcontrol_v1_subject import FlowcontrolV1Subject from kubernetes.client.models.rbac_v1_subject import RbacV1Subject +from kubernetes.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim from kubernetes.client.models.storage_v1_token_request import StorageV1TokenRequest from kubernetes.client.models.v1_api_group import V1APIGroup from kubernetes.client.models.v1_api_group_list import V1APIGroupList @@ -44,6 +46,8 @@ from kubernetes.client.models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource from kubernetes.client.models.v1_affinity import V1Affinity from kubernetes.client.models.v1_aggregation_rule import V1AggregationRule +from kubernetes.client.models.v1_allocated_device_status import V1AllocatedDeviceStatus +from kubernetes.client.models.v1_allocation_result import V1AllocationResult from kubernetes.client.models.v1_app_armor_profile import V1AppArmorProfile from kubernetes.client.models.v1_attached_volume import V1AttachedVolume from kubernetes.client.models.v1_audit_annotation import V1AuditAnnotation @@ -52,6 +56,7 @@ from kubernetes.client.models.v1_azure_file_volume_source import V1AzureFileVolumeSource from kubernetes.client.models.v1_binding import V1Binding from kubernetes.client.models.v1_bound_object_reference import V1BoundObjectReference +from kubernetes.client.models.v1_cel_device_selector import V1CELDeviceSelector from kubernetes.client.models.v1_csi_driver import V1CSIDriver from kubernetes.client.models.v1_csi_driver_list import V1CSIDriverList from kubernetes.client.models.v1_csi_driver_spec import V1CSIDriverSpec @@ -64,6 +69,9 @@ from kubernetes.client.models.v1_csi_storage_capacity_list import V1CSIStorageCapacityList from kubernetes.client.models.v1_csi_volume_source import V1CSIVolumeSource from kubernetes.client.models.v1_capabilities import V1Capabilities +from kubernetes.client.models.v1_capacity_request_policy import V1CapacityRequestPolicy +from kubernetes.client.models.v1_capacity_request_policy_range import V1CapacityRequestPolicyRange +from kubernetes.client.models.v1_capacity_requirements import V1CapacityRequirements from kubernetes.client.models.v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource from kubernetes.client.models.v1_ceph_fs_volume_source import V1CephFSVolumeSource from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest @@ -91,9 +99,12 @@ from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection from kubernetes.client.models.v1_config_map_volume_source import V1ConfigMapVolumeSource from kubernetes.client.models.v1_container import V1Container +from kubernetes.client.models.v1_container_extended_resource_request import V1ContainerExtendedResourceRequest from kubernetes.client.models.v1_container_image import V1ContainerImage from kubernetes.client.models.v1_container_port import V1ContainerPort from kubernetes.client.models.v1_container_resize_policy import V1ContainerResizePolicy +from kubernetes.client.models.v1_container_restart_rule import V1ContainerRestartRule +from kubernetes.client.models.v1_container_restart_rule_on_exit_codes import V1ContainerRestartRuleOnExitCodes from kubernetes.client.models.v1_container_state import V1ContainerState from kubernetes.client.models.v1_container_state_running import V1ContainerStateRunning from kubernetes.client.models.v1_container_state_terminated import V1ContainerStateTerminated @@ -102,6 +113,8 @@ from kubernetes.client.models.v1_container_user import V1ContainerUser from kubernetes.client.models.v1_controller_revision import V1ControllerRevision from kubernetes.client.models.v1_controller_revision_list import V1ControllerRevisionList +from kubernetes.client.models.v1_counter import V1Counter +from kubernetes.client.models.v1_counter_set import V1CounterSet from kubernetes.client.models.v1_cron_job import V1CronJob from kubernetes.client.models.v1_cron_job_list import V1CronJobList from kubernetes.client.models.v1_cron_job_spec import V1CronJobSpec @@ -133,6 +146,25 @@ from kubernetes.client.models.v1_deployment_spec import V1DeploymentSpec from kubernetes.client.models.v1_deployment_status import V1DeploymentStatus from kubernetes.client.models.v1_deployment_strategy import V1DeploymentStrategy +from kubernetes.client.models.v1_device import V1Device +from kubernetes.client.models.v1_device_allocation_configuration import V1DeviceAllocationConfiguration +from kubernetes.client.models.v1_device_allocation_result import V1DeviceAllocationResult +from kubernetes.client.models.v1_device_attribute import V1DeviceAttribute +from kubernetes.client.models.v1_device_capacity import V1DeviceCapacity +from kubernetes.client.models.v1_device_claim import V1DeviceClaim +from kubernetes.client.models.v1_device_claim_configuration import V1DeviceClaimConfiguration +from kubernetes.client.models.v1_device_class import V1DeviceClass +from kubernetes.client.models.v1_device_class_configuration import V1DeviceClassConfiguration +from kubernetes.client.models.v1_device_class_list import V1DeviceClassList +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_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_toleration import V1DeviceToleration from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile from kubernetes.client.models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource @@ -153,6 +185,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_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 from kubernetes.client.models.v1_expression_warning import V1ExpressionWarning @@ -160,6 +193,7 @@ from kubernetes.client.models.v1_fc_volume_source import V1FCVolumeSource from kubernetes.client.models.v1_field_selector_attributes import V1FieldSelectorAttributes from kubernetes.client.models.v1_field_selector_requirement import V1FieldSelectorRequirement +from kubernetes.client.models.v1_file_key_selector import V1FileKeySelector from kubernetes.client.models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource from kubernetes.client.models.v1_flex_volume_source import V1FlexVolumeSource from kubernetes.client.models.v1_flocker_volume_source import V1FlockerVolumeSource @@ -254,6 +288,7 @@ from kubernetes.client.models.v1_namespace_list import V1NamespaceList from kubernetes.client.models.v1_namespace_spec import V1NamespaceSpec from kubernetes.client.models.v1_namespace_status import V1NamespaceStatus +from kubernetes.client.models.v1_network_device_data import V1NetworkDeviceData from kubernetes.client.models.v1_network_policy import V1NetworkPolicy from kubernetes.client.models.v1_network_policy_egress_rule import V1NetworkPolicyEgressRule from kubernetes.client.models.v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule @@ -285,6 +320,7 @@ from kubernetes.client.models.v1_object_field_selector import V1ObjectFieldSelector from kubernetes.client.models.v1_object_meta import V1ObjectMeta from kubernetes.client.models.v1_object_reference import V1ObjectReference +from kubernetes.client.models.v1_opaque_device_configuration import V1OpaqueDeviceConfiguration from kubernetes.client.models.v1_overhead import V1Overhead from kubernetes.client.models.v1_owner_reference import V1OwnerReference from kubernetes.client.models.v1_param_kind import V1ParamKind @@ -306,6 +342,7 @@ from kubernetes.client.models.v1_pod_affinity import V1PodAffinity 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_condition import V1PodCondition from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption @@ -313,6 +350,7 @@ from kubernetes.client.models.v1_pod_disruption_budget_list import V1PodDisruptionBudgetList from kubernetes.client.models.v1_pod_disruption_budget_spec import V1PodDisruptionBudgetSpec from kubernetes.client.models.v1_pod_disruption_budget_status import V1PodDisruptionBudgetStatus +from kubernetes.client.models.v1_pod_extended_resource_claim_status import V1PodExtendedResourceClaimStatus from kubernetes.client.models.v1_pod_failure_policy import V1PodFailurePolicy from kubernetes.client.models.v1_pod_failure_policy_on_exit_codes_requirement import V1PodFailurePolicyOnExitCodesRequirement from kubernetes.client.models.v1_pod_failure_policy_on_pod_conditions_pattern import V1PodFailurePolicyOnPodConditionsPattern @@ -361,16 +399,26 @@ from kubernetes.client.models.v1_replication_controller_spec import V1ReplicationControllerSpec from kubernetes.client.models.v1_replication_controller_status import V1ReplicationControllerStatus from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes -from kubernetes.client.models.v1_resource_claim import V1ResourceClaim +from kubernetes.client.models.v1_resource_claim_consumer_reference import V1ResourceClaimConsumerReference +from kubernetes.client.models.v1_resource_claim_list import V1ResourceClaimList +from kubernetes.client.models.v1_resource_claim_spec import V1ResourceClaimSpec +from kubernetes.client.models.v1_resource_claim_status import V1ResourceClaimStatus +from kubernetes.client.models.v1_resource_claim_template import V1ResourceClaimTemplate +from kubernetes.client.models.v1_resource_claim_template_list import V1ResourceClaimTemplateList +from kubernetes.client.models.v1_resource_claim_template_spec import V1ResourceClaimTemplateSpec from kubernetes.client.models.v1_resource_field_selector import V1ResourceFieldSelector from kubernetes.client.models.v1_resource_health import V1ResourceHealth from kubernetes.client.models.v1_resource_policy_rule import V1ResourcePolicyRule +from kubernetes.client.models.v1_resource_pool import V1ResourcePool from kubernetes.client.models.v1_resource_quota import V1ResourceQuota from kubernetes.client.models.v1_resource_quota_list import V1ResourceQuotaList from kubernetes.client.models.v1_resource_quota_spec import V1ResourceQuotaSpec from kubernetes.client.models.v1_resource_quota_status import V1ResourceQuotaStatus from kubernetes.client.models.v1_resource_requirements import V1ResourceRequirements from kubernetes.client.models.v1_resource_rule import V1ResourceRule +from kubernetes.client.models.v1_resource_slice import V1ResourceSlice +from kubernetes.client.models.v1_resource_slice_list import V1ResourceSliceList +from kubernetes.client.models.v1_resource_slice_spec import V1ResourceSliceSpec from kubernetes.client.models.v1_resource_status import V1ResourceStatus from kubernetes.client.models.v1_role import V1Role from kubernetes.client.models.v1_role_binding import V1RoleBinding @@ -483,6 +531,8 @@ from kubernetes.client.models.v1_volume_attachment_source import V1VolumeAttachmentSource from kubernetes.client.models.v1_volume_attachment_spec import V1VolumeAttachmentSpec from kubernetes.client.models.v1_volume_attachment_status import V1VolumeAttachmentStatus +from kubernetes.client.models.v1_volume_attributes_class import V1VolumeAttributesClass +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_mount import V1VolumeMount @@ -515,6 +565,10 @@ 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_pod_certificate_request import V1alpha1PodCertificateRequest +from kubernetes.client.models.v1alpha1_pod_certificate_request_list import V1alpha1PodCertificateRequestList +from kubernetes.client.models.v1alpha1_pod_certificate_request_spec import V1alpha1PodCertificateRequestSpec +from kubernetes.client.models.v1alpha1_pod_certificate_request_status import V1alpha1PodCertificateRequestStatus 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 @@ -530,53 +584,21 @@ 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.v1alpha3_allocated_device_status import V1alpha3AllocatedDeviceStatus -from kubernetes.client.models.v1alpha3_allocation_result import V1alpha3AllocationResult -from kubernetes.client.models.v1alpha3_basic_device import V1alpha3BasicDevice from kubernetes.client.models.v1alpha3_cel_device_selector import V1alpha3CELDeviceSelector -from kubernetes.client.models.v1alpha3_counter import V1alpha3Counter -from kubernetes.client.models.v1alpha3_counter_set import V1alpha3CounterSet -from kubernetes.client.models.v1alpha3_device import V1alpha3Device -from kubernetes.client.models.v1alpha3_device_allocation_configuration import V1alpha3DeviceAllocationConfiguration -from kubernetes.client.models.v1alpha3_device_allocation_result import V1alpha3DeviceAllocationResult -from kubernetes.client.models.v1alpha3_device_attribute import V1alpha3DeviceAttribute -from kubernetes.client.models.v1alpha3_device_claim import V1alpha3DeviceClaim -from kubernetes.client.models.v1alpha3_device_claim_configuration import V1alpha3DeviceClaimConfiguration -from kubernetes.client.models.v1alpha3_device_class import V1alpha3DeviceClass -from kubernetes.client.models.v1alpha3_device_class_configuration import V1alpha3DeviceClassConfiguration -from kubernetes.client.models.v1alpha3_device_class_list import V1alpha3DeviceClassList -from kubernetes.client.models.v1alpha3_device_class_spec import V1alpha3DeviceClassSpec -from kubernetes.client.models.v1alpha3_device_constraint import V1alpha3DeviceConstraint -from kubernetes.client.models.v1alpha3_device_counter_consumption import V1alpha3DeviceCounterConsumption -from kubernetes.client.models.v1alpha3_device_request import V1alpha3DeviceRequest -from kubernetes.client.models.v1alpha3_device_request_allocation_result import V1alpha3DeviceRequestAllocationResult from kubernetes.client.models.v1alpha3_device_selector import V1alpha3DeviceSelector -from kubernetes.client.models.v1alpha3_device_sub_request import V1alpha3DeviceSubRequest 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_selector import V1alpha3DeviceTaintSelector -from kubernetes.client.models.v1alpha3_device_toleration import V1alpha3DeviceToleration -from kubernetes.client.models.v1alpha3_network_device_data import V1alpha3NetworkDeviceData -from kubernetes.client.models.v1alpha3_opaque_device_configuration import V1alpha3OpaqueDeviceConfiguration -from kubernetes.client.models.v1alpha3_resource_claim import V1alpha3ResourceClaim -from kubernetes.client.models.v1alpha3_resource_claim_consumer_reference import V1alpha3ResourceClaimConsumerReference -from kubernetes.client.models.v1alpha3_resource_claim_list import V1alpha3ResourceClaimList -from kubernetes.client.models.v1alpha3_resource_claim_spec import V1alpha3ResourceClaimSpec -from kubernetes.client.models.v1alpha3_resource_claim_status import V1alpha3ResourceClaimStatus -from kubernetes.client.models.v1alpha3_resource_claim_template import V1alpha3ResourceClaimTemplate -from kubernetes.client.models.v1alpha3_resource_claim_template_list import V1alpha3ResourceClaimTemplateList -from kubernetes.client.models.v1alpha3_resource_claim_template_spec import V1alpha3ResourceClaimTemplateSpec -from kubernetes.client.models.v1alpha3_resource_pool import V1alpha3ResourcePool -from kubernetes.client.models.v1alpha3_resource_slice import V1alpha3ResourceSlice -from kubernetes.client.models.v1alpha3_resource_slice_list import V1alpha3ResourceSliceList -from kubernetes.client.models.v1alpha3_resource_slice_spec import V1alpha3ResourceSliceSpec from kubernetes.client.models.v1beta1_allocated_device_status import V1beta1AllocatedDeviceStatus from kubernetes.client.models.v1beta1_allocation_result import V1beta1AllocationResult -from kubernetes.client.models.v1beta1_audit_annotation import V1beta1AuditAnnotation +from kubernetes.client.models.v1beta1_apply_configuration import V1beta1ApplyConfiguration from kubernetes.client.models.v1beta1_basic_device import V1beta1BasicDevice from kubernetes.client.models.v1beta1_cel_device_selector import V1beta1CELDeviceSelector +from kubernetes.client.models.v1beta1_capacity_request_policy import V1beta1CapacityRequestPolicy +from kubernetes.client.models.v1beta1_capacity_request_policy_range import V1beta1CapacityRequestPolicyRange +from kubernetes.client.models.v1beta1_capacity_requirements import V1beta1CapacityRequirements 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 @@ -601,15 +623,22 @@ 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_expression_warning import V1beta1ExpressionWarning 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_json_patch import V1beta1JSONPatch from kubernetes.client.models.v1beta1_lease_candidate import V1beta1LeaseCandidate from kubernetes.client.models.v1beta1_lease_candidate_list import V1beta1LeaseCandidateList from kubernetes.client.models.v1beta1_lease_candidate_spec import V1beta1LeaseCandidateSpec from kubernetes.client.models.v1beta1_match_condition import V1beta1MatchCondition from kubernetes.client.models.v1beta1_match_resources import V1beta1MatchResources +from kubernetes.client.models.v1beta1_mutating_admission_policy import V1beta1MutatingAdmissionPolicy +from kubernetes.client.models.v1beta1_mutating_admission_policy_binding import V1beta1MutatingAdmissionPolicyBinding +from kubernetes.client.models.v1beta1_mutating_admission_policy_binding_list import V1beta1MutatingAdmissionPolicyBindingList +from kubernetes.client.models.v1beta1_mutating_admission_policy_binding_spec import V1beta1MutatingAdmissionPolicyBindingSpec +from kubernetes.client.models.v1beta1_mutating_admission_policy_list import V1beta1MutatingAdmissionPolicyList +from kubernetes.client.models.v1beta1_mutating_admission_policy_spec import V1beta1MutatingAdmissionPolicySpec +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_opaque_device_configuration import V1beta1OpaqueDeviceConfiguration @@ -632,21 +661,15 @@ 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_type_checking import V1beta1TypeChecking -from kubernetes.client.models.v1beta1_validating_admission_policy import V1beta1ValidatingAdmissionPolicy -from kubernetes.client.models.v1beta1_validating_admission_policy_binding import V1beta1ValidatingAdmissionPolicyBinding -from kubernetes.client.models.v1beta1_validating_admission_policy_binding_list import V1beta1ValidatingAdmissionPolicyBindingList -from kubernetes.client.models.v1beta1_validating_admission_policy_binding_spec import V1beta1ValidatingAdmissionPolicyBindingSpec -from kubernetes.client.models.v1beta1_validating_admission_policy_list import V1beta1ValidatingAdmissionPolicyList -from kubernetes.client.models.v1beta1_validating_admission_policy_spec import V1beta1ValidatingAdmissionPolicySpec -from kubernetes.client.models.v1beta1_validating_admission_policy_status import V1beta1ValidatingAdmissionPolicyStatus -from kubernetes.client.models.v1beta1_validation import V1beta1Validation 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.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 +from kubernetes.client.models.v1beta2_capacity_request_policy import V1beta2CapacityRequestPolicy +from kubernetes.client.models.v1beta2_capacity_request_policy_range import V1beta2CapacityRequestPolicyRange +from kubernetes.client.models.v1beta2_capacity_requirements import V1beta2CapacityRequirements from kubernetes.client.models.v1beta2_counter import V1beta2Counter from kubernetes.client.models.v1beta2_counter_set import V1beta2CounterSet from kubernetes.client.models.v1beta2_device import V1beta2Device diff --git a/kubernetes/client/models/admissionregistration_v1_service_reference.py b/kubernetes/client/models/admissionregistration_v1_service_reference.py index 7db203b98..0fe986dcb 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py b/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py index e5180773d..8bb180bef 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/apiextensions_v1_service_reference.py b/kubernetes/client/models/apiextensions_v1_service_reference.py index 48bdf1404..e108a756b 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/apiextensions_v1_webhook_client_config.py b/kubernetes/client/models/apiextensions_v1_webhook_client_config.py index 785bfd101..442399053 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/apiregistration_v1_service_reference.py b/kubernetes/client/models/apiregistration_v1_service_reference.py index da8a9ba2f..c76c2fb86 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/authentication_v1_token_request.py b/kubernetes/client/models/authentication_v1_token_request.py index 6837bf50b..2206e9a30 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/core_v1_endpoint_port.py b/kubernetes/client/models/core_v1_endpoint_port.py index 4a27a90cb..6c7d20f0e 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/core_v1_event.py b/kubernetes/client/models/core_v1_event.py index 5f33a5249..e6306763b 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/core_v1_event_list.py b/kubernetes/client/models/core_v1_event_list.py index 122c01523..f65314771 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/core_v1_event_series.py b/kubernetes/client/models/core_v1_event_series.py index 710386c71..97b317ec1 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_resource_claim.py b/kubernetes/client/models/core_v1_resource_claim.py similarity index 83% rename from kubernetes/client/models/v1_resource_claim.py rename to kubernetes/client/models/core_v1_resource_claim.py index 0e06ae5da..5276e9758 100644 --- a/kubernetes/client/models/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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1ResourceClaim(object): +class CoreV1ResourceClaim(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -43,7 +43,7 @@ class V1ResourceClaim(object): } def __init__(self, name=None, request=None, local_vars_configuration=None): # noqa: E501 - """V1ResourceClaim - a model defined in OpenAPI""" # noqa: E501 + """CoreV1ResourceClaim - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -58,22 +58,22 @@ def __init__(self, name=None, request=None, local_vars_configuration=None): # n @property def name(self): - """Gets the name of this V1ResourceClaim. # noqa: E501 + """Gets the name of this CoreV1ResourceClaim. # noqa: E501 Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. # noqa: E501 - :return: The name of this V1ResourceClaim. # noqa: E501 + :return: The name of this CoreV1ResourceClaim. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this V1ResourceClaim. + """Sets the name of this CoreV1ResourceClaim. Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. # noqa: E501 - :param name: The name of this V1ResourceClaim. # noqa: E501 + :param name: The name of this CoreV1ResourceClaim. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 @@ -83,22 +83,22 @@ def name(self, name): @property def request(self): - """Gets the request of this V1ResourceClaim. # noqa: E501 + """Gets the request of this CoreV1ResourceClaim. # noqa: E501 Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. # noqa: E501 - :return: The request of this V1ResourceClaim. # noqa: E501 + :return: The request of this CoreV1ResourceClaim. # noqa: E501 :rtype: str """ return self._request @request.setter def request(self, request): - """Sets the request of this V1ResourceClaim. + """Sets the request of this CoreV1ResourceClaim. Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. # noqa: E501 - :param request: The request of this V1ResourceClaim. # noqa: E501 + :param request: The request of this CoreV1ResourceClaim. # noqa: E501 :type: str """ @@ -138,14 +138,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1ResourceClaim): + if not isinstance(other, CoreV1ResourceClaim): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1ResourceClaim): + if not isinstance(other, CoreV1ResourceClaim): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/discovery_v1_endpoint_port.py b/kubernetes/client/models/discovery_v1_endpoint_port.py index 18e7e6954..551ef016b 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/events_v1_event.py b/kubernetes/client/models/events_v1_event.py index f4acb4b1b..4a69759a0 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/events_v1_event_list.py b/kubernetes/client/models/events_v1_event_list.py index 257a9e0b0..e3884287b 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/events_v1_event_series.py b/kubernetes/client/models/events_v1_event_series.py index aea315f30..30b59b654 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/flowcontrol_v1_subject.py b/kubernetes/client/models/flowcontrol_v1_subject.py index fb12f8ef1..bbf34a7ba 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/rbac_v1_subject.py b/kubernetes/client/models/rbac_v1_subject.py index 273ed70e6..a4fc369bc 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1alpha3_resource_claim.py b/kubernetes/client/models/resource_v1_resource_claim.py similarity index 74% rename from kubernetes/client/models/v1alpha3_resource_claim.py rename to kubernetes/client/models/resource_v1_resource_claim.py index bbf3b1763..fe38c5b55 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3ResourceClaim(object): +class ResourceV1ResourceClaim(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -36,8 +36,8 @@ class V1alpha3ResourceClaim(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'spec': 'V1alpha3ResourceClaimSpec', - 'status': 'V1alpha3ResourceClaimStatus' + 'spec': 'V1ResourceClaimSpec', + 'status': 'V1ResourceClaimStatus' } attribute_map = { @@ -49,7 +49,7 @@ class V1alpha3ResourceClaim(object): } def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3ResourceClaim - a model defined in OpenAPI""" # noqa: E501 + """ResourceV1ResourceClaim - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -73,22 +73,22 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): - """Gets the api_version of this V1alpha3ResourceClaim. # noqa: E501 + """Gets the api_version of this ResourceV1ResourceClaim. # noqa: E501 APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha3ResourceClaim. # noqa: E501 + :return: The api_version of this ResourceV1ResourceClaim. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """Sets the api_version of this V1alpha3ResourceClaim. + """Sets the api_version of this ResourceV1ResourceClaim. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha3ResourceClaim. # noqa: E501 + :param api_version: The api_version of this ResourceV1ResourceClaim. # noqa: E501 :type: str """ @@ -96,22 +96,22 @@ def api_version(self, api_version): @property def kind(self): - """Gets the kind of this V1alpha3ResourceClaim. # noqa: E501 + """Gets the kind of this ResourceV1ResourceClaim. # noqa: E501 Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha3ResourceClaim. # noqa: E501 + :return: The kind of this ResourceV1ResourceClaim. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """Sets the kind of this V1alpha3ResourceClaim. + """Sets the kind of this ResourceV1ResourceClaim. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha3ResourceClaim. # noqa: E501 + :param kind: The kind of this ResourceV1ResourceClaim. # noqa: E501 :type: str """ @@ -119,20 +119,20 @@ def kind(self, kind): @property def metadata(self): - """Gets the metadata of this V1alpha3ResourceClaim. # noqa: E501 + """Gets the metadata of this ResourceV1ResourceClaim. # noqa: E501 - :return: The metadata of this V1alpha3ResourceClaim. # noqa: E501 + :return: The metadata of this ResourceV1ResourceClaim. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """Sets the metadata of this V1alpha3ResourceClaim. + """Sets the metadata of this ResourceV1ResourceClaim. - :param metadata: The metadata of this V1alpha3ResourceClaim. # noqa: E501 + :param metadata: The metadata of this ResourceV1ResourceClaim. # noqa: E501 :type: V1ObjectMeta """ @@ -140,21 +140,21 @@ def metadata(self, metadata): @property def spec(self): - """Gets the spec of this V1alpha3ResourceClaim. # noqa: E501 + """Gets the spec of this ResourceV1ResourceClaim. # noqa: E501 - :return: The spec of this V1alpha3ResourceClaim. # noqa: E501 - :rtype: V1alpha3ResourceClaimSpec + :return: The spec of this ResourceV1ResourceClaim. # noqa: E501 + :rtype: V1ResourceClaimSpec """ return self._spec @spec.setter def spec(self, spec): - """Sets the spec of this V1alpha3ResourceClaim. + """Sets the spec of this ResourceV1ResourceClaim. - :param spec: The spec of this V1alpha3ResourceClaim. # noqa: E501 - :type: V1alpha3ResourceClaimSpec + :param spec: The spec of this ResourceV1ResourceClaim. # noqa: E501 + :type: V1ResourceClaimSpec """ if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 @@ -163,21 +163,21 @@ def spec(self, spec): @property def status(self): - """Gets the status of this V1alpha3ResourceClaim. # noqa: E501 + """Gets the status of this ResourceV1ResourceClaim. # noqa: E501 - :return: The status of this V1alpha3ResourceClaim. # noqa: E501 - :rtype: V1alpha3ResourceClaimStatus + :return: The status of this ResourceV1ResourceClaim. # noqa: E501 + :rtype: V1ResourceClaimStatus """ return self._status @status.setter def status(self, status): - """Sets the status of this V1alpha3ResourceClaim. + """Sets the status of this ResourceV1ResourceClaim. - :param status: The status of this V1alpha3ResourceClaim. # noqa: E501 - :type: V1alpha3ResourceClaimStatus + :param status: The status of this ResourceV1ResourceClaim. # noqa: E501 + :type: V1ResourceClaimStatus """ self._status = status @@ -216,14 +216,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3ResourceClaim): + if not isinstance(other, ResourceV1ResourceClaim): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3ResourceClaim): + if not isinstance(other, ResourceV1ResourceClaim): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/storage_v1_token_request.py b/kubernetes/client/models/storage_v1_token_request.py index a01de4f32..506b3204e 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_affinity.py b/kubernetes/client/models/v1_affinity.py index fd2c8cc3d..e3fd1a950 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_aggregation_rule.py b/kubernetes/client/models/v1_aggregation_rule.py index 3a6210349..bc9baa166 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1alpha3_allocated_device_status.py b/kubernetes/client/models/v1_allocated_device_status.py similarity index 70% rename from kubernetes/client/models/v1alpha3_allocated_device_status.py rename to kubernetes/client/models/v1_allocated_device_status.py index d82eff917..39566554c 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3AllocatedDeviceStatus(object): +class V1AllocatedDeviceStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -37,8 +37,9 @@ class V1alpha3AllocatedDeviceStatus(object): 'data': 'object', 'device': 'str', 'driver': 'str', - 'network_data': 'V1alpha3NetworkDeviceData', - 'pool': 'str' + 'network_data': 'V1NetworkDeviceData', + 'pool': 'str', + 'share_id': 'str' } attribute_map = { @@ -47,11 +48,12 @@ class V1alpha3AllocatedDeviceStatus(object): 'device': 'device', 'driver': 'driver', 'network_data': 'networkData', - 'pool': 'pool' + 'pool': 'pool', + 'share_id': 'shareID' } - def __init__(self, conditions=None, data=None, device=None, driver=None, network_data=None, pool=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3AllocatedDeviceStatus - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, conditions=None, data=None, device=None, driver=None, network_data=None, pool=None, share_id=None, local_vars_configuration=None): # noqa: E501 + """V1AllocatedDeviceStatus - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -62,6 +64,7 @@ def __init__(self, conditions=None, data=None, device=None, driver=None, network self._driver = None self._network_data = None self._pool = None + self._share_id = None self.discriminator = None if conditions is not None: @@ -73,25 +76,27 @@ def __init__(self, conditions=None, data=None, device=None, driver=None, network if network_data is not None: self.network_data = network_data self.pool = pool + if share_id is not None: + self.share_id = share_id @property def conditions(self): - """Gets the conditions of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + """Gets the conditions of this V1AllocatedDeviceStatus. # noqa: E501 Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. # noqa: E501 - :return: The conditions of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + :return: The conditions of this V1AllocatedDeviceStatus. # noqa: E501 :rtype: list[V1Condition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """Sets the conditions of this V1alpha3AllocatedDeviceStatus. + """Sets the conditions of this V1AllocatedDeviceStatus. Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. # noqa: E501 - :param conditions: The conditions of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + :param conditions: The conditions of this V1AllocatedDeviceStatus. # noqa: E501 :type: list[V1Condition] """ @@ -99,22 +104,22 @@ def conditions(self, conditions): @property def data(self): - """Gets the data of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + """Gets the data of this V1AllocatedDeviceStatus. # noqa: E501 Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. # noqa: E501 - :return: The data of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + :return: The data of this V1AllocatedDeviceStatus. # noqa: E501 :rtype: object """ return self._data @data.setter def data(self, data): - """Sets the data of this V1alpha3AllocatedDeviceStatus. + """Sets the data of this V1AllocatedDeviceStatus. Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. # noqa: E501 - :param data: The data of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + :param data: The data of this V1AllocatedDeviceStatus. # noqa: E501 :type: object """ @@ -122,22 +127,22 @@ def data(self, data): @property def device(self): - """Gets the device of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + """Gets the device of this V1AllocatedDeviceStatus. # noqa: E501 Device references one device instance via its name in the driver's resource pool. It must be a DNS label. # noqa: E501 - :return: The device of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + :return: The device of this V1AllocatedDeviceStatus. # noqa: E501 :rtype: str """ return self._device @device.setter def device(self, device): - """Sets the device of this V1alpha3AllocatedDeviceStatus. + """Sets the device of this V1AllocatedDeviceStatus. Device references one device instance via its name in the driver's resource pool. It must be a DNS label. # noqa: E501 - :param device: The device of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + :param device: The device of this V1AllocatedDeviceStatus. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and device is None: # noqa: E501 @@ -147,22 +152,22 @@ def device(self, device): @property def driver(self): - """Gets the driver of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + """Gets the driver of this V1AllocatedDeviceStatus. # noqa: E501 Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. # noqa: E501 - :return: The driver of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + :return: The driver of this V1AllocatedDeviceStatus. # noqa: E501 :rtype: str """ return self._driver @driver.setter def driver(self, driver): - """Sets the driver of this V1alpha3AllocatedDeviceStatus. + """Sets the driver of this V1AllocatedDeviceStatus. Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. # noqa: E501 - :param driver: The driver of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + :param driver: The driver of this V1AllocatedDeviceStatus. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501 @@ -172,43 +177,43 @@ def driver(self, driver): @property def network_data(self): - """Gets the network_data of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + """Gets the network_data of this V1AllocatedDeviceStatus. # noqa: E501 - :return: The network_data of this V1alpha3AllocatedDeviceStatus. # noqa: E501 - :rtype: V1alpha3NetworkDeviceData + :return: The network_data of this V1AllocatedDeviceStatus. # noqa: E501 + :rtype: V1NetworkDeviceData """ return self._network_data @network_data.setter def network_data(self, network_data): - """Sets the network_data of this V1alpha3AllocatedDeviceStatus. + """Sets the network_data of this V1AllocatedDeviceStatus. - :param network_data: The network_data of this V1alpha3AllocatedDeviceStatus. # noqa: E501 - :type: V1alpha3NetworkDeviceData + :param network_data: The network_data of this V1AllocatedDeviceStatus. # noqa: E501 + :type: V1NetworkDeviceData """ self._network_data = network_data @property def pool(self): - """Gets the pool of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + """Gets the pool of this V1AllocatedDeviceStatus. # noqa: E501 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. # noqa: E501 - :return: The pool of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + :return: The pool of this V1AllocatedDeviceStatus. # noqa: E501 :rtype: str """ return self._pool @pool.setter def pool(self, pool): - """Sets the pool of this V1alpha3AllocatedDeviceStatus. + """Sets the pool of this V1AllocatedDeviceStatus. 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. # noqa: E501 - :param pool: The pool of this V1alpha3AllocatedDeviceStatus. # noqa: E501 + :param pool: The pool of this V1AllocatedDeviceStatus. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and pool is None: # noqa: E501 @@ -216,6 +221,29 @@ def pool(self, pool): self._pool = pool + @property + def share_id(self): + """Gets the share_id of this V1AllocatedDeviceStatus. # noqa: E501 + + ShareID uniquely identifies an individual allocation share of the device. # noqa: E501 + + :return: The share_id of this V1AllocatedDeviceStatus. # noqa: E501 + :rtype: str + """ + return self._share_id + + @share_id.setter + def share_id(self, share_id): + """Sets the share_id of this V1AllocatedDeviceStatus. + + ShareID uniquely identifies an individual allocation share of the device. # noqa: E501 + + :param share_id: The share_id of this V1AllocatedDeviceStatus. # noqa: E501 + :type: str + """ + + self._share_id = share_id + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -250,14 +278,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3AllocatedDeviceStatus): + if not isinstance(other, V1AllocatedDeviceStatus): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3AllocatedDeviceStatus): + if not isinstance(other, V1AllocatedDeviceStatus): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_allocation_result.py b/kubernetes/client/models/v1_allocation_result.py similarity index 56% rename from kubernetes/client/models/v1alpha3_allocation_result.py rename to kubernetes/client/models/v1_allocation_result.py index 68314a17d..db371fc40 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3AllocationResult(object): +class V1AllocationResult(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,67 +33,95 @@ class V1alpha3AllocationResult(object): and the value is json key in definition. """ openapi_types = { - 'devices': 'V1alpha3DeviceAllocationResult', + 'allocation_timestamp': 'datetime', + 'devices': 'V1DeviceAllocationResult', 'node_selector': 'V1NodeSelector' } attribute_map = { + 'allocation_timestamp': 'allocationTimestamp', 'devices': 'devices', 'node_selector': 'nodeSelector' } - def __init__(self, devices=None, node_selector=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3AllocationResult - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, allocation_timestamp=None, devices=None, node_selector=None, local_vars_configuration=None): # noqa: E501 + """V1AllocationResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._allocation_timestamp = None self._devices = None self._node_selector = None self.discriminator = None + if allocation_timestamp is not None: + self.allocation_timestamp = allocation_timestamp if devices is not None: self.devices = devices if node_selector is not None: self.node_selector = node_selector + @property + def allocation_timestamp(self): + """Gets the allocation_timestamp of this V1AllocationResult. # noqa: E501 + + AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. # noqa: E501 + + :return: The allocation_timestamp of this V1AllocationResult. # noqa: E501 + :rtype: datetime + """ + return self._allocation_timestamp + + @allocation_timestamp.setter + def allocation_timestamp(self, allocation_timestamp): + """Sets the allocation_timestamp of this V1AllocationResult. + + AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. # noqa: E501 + + :param allocation_timestamp: The allocation_timestamp of this V1AllocationResult. # noqa: E501 + :type: datetime + """ + + self._allocation_timestamp = allocation_timestamp + @property def devices(self): - """Gets the devices of this V1alpha3AllocationResult. # noqa: E501 + """Gets the devices of this V1AllocationResult. # noqa: E501 - :return: The devices of this V1alpha3AllocationResult. # noqa: E501 - :rtype: V1alpha3DeviceAllocationResult + :return: The devices of this V1AllocationResult. # noqa: E501 + :rtype: V1DeviceAllocationResult """ return self._devices @devices.setter def devices(self, devices): - """Sets the devices of this V1alpha3AllocationResult. + """Sets the devices of this V1AllocationResult. - :param devices: The devices of this V1alpha3AllocationResult. # noqa: E501 - :type: V1alpha3DeviceAllocationResult + :param devices: The devices of this V1AllocationResult. # noqa: E501 + :type: V1DeviceAllocationResult """ self._devices = devices @property def node_selector(self): - """Gets the node_selector of this V1alpha3AllocationResult. # noqa: E501 + """Gets the node_selector of this V1AllocationResult. # noqa: E501 - :return: The node_selector of this V1alpha3AllocationResult. # noqa: E501 + :return: The node_selector of this V1AllocationResult. # noqa: E501 :rtype: V1NodeSelector """ return self._node_selector @node_selector.setter def node_selector(self, node_selector): - """Sets the node_selector of this V1alpha3AllocationResult. + """Sets the node_selector of this V1AllocationResult. - :param node_selector: The node_selector of this V1alpha3AllocationResult. # noqa: E501 + :param node_selector: The node_selector of this V1AllocationResult. # noqa: E501 :type: V1NodeSelector """ @@ -133,14 +161,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3AllocationResult): + if not isinstance(other, V1AllocationResult): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3AllocationResult): + if not isinstance(other, V1AllocationResult): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_api_group.py b/kubernetes/client/models/v1_api_group.py index 4df686be4..bf2e3f207 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_api_group_list.py b/kubernetes/client/models/v1_api_group_list.py index 3bc8db3f3..99040c239 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_api_resource.py b/kubernetes/client/models/v1_api_resource.py index 689654567..35cf3aa86 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_api_resource_list.py b/kubernetes/client/models/v1_api_resource_list.py index bf366b714..a0cc5d67c 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_api_service.py b/kubernetes/client/models/v1_api_service.py index 52ef82fee..21d260ee2 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_api_service_condition.py b/kubernetes/client/models/v1_api_service_condition.py index 90cc7df60..f9be1379b 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_api_service_list.py b/kubernetes/client/models/v1_api_service_list.py index f1d2cc306..1c22ea3d3 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_api_service_spec.py b/kubernetes/client/models/v1_api_service_spec.py index ea1d080a4..c47f1cc33 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_api_service_status.py b/kubernetes/client/models/v1_api_service_status.py index 80a5c1d2f..e4fa5e50c 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_api_versions.py b/kubernetes/client/models/v1_api_versions.py index 3e0ac0815..a4028e6cd 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_app_armor_profile.py b/kubernetes/client/models/v1_app_armor_profile.py index 5d8859c70..39a81d622 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_attached_volume.py b/kubernetes/client/models/v1_attached_volume.py index 695ac3819..4d861528c 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_audit_annotation.py b/kubernetes/client/models/v1_audit_annotation.py index d5efa68c5..9289b060a 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ 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 8a7b0bfad..dce4e8161 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_azure_disk_volume_source.py b/kubernetes/client/models/v1_azure_disk_volume_source.py index 15d932032..af3584ba3 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ 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 4bdf9420d..972387edc 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_azure_file_volume_source.py b/kubernetes/client/models/v1_azure_file_volume_source.py index 6decdda53..a901ff589 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_binding.py b/kubernetes/client/models/v1_binding.py index 93e56ec06..c10ce20e1 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_bound_object_reference.py b/kubernetes/client/models/v1_bound_object_reference.py index 4c24053bb..db8375997 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_capabilities.py b/kubernetes/client/models/v1_capabilities.py index 797457692..ca4e420d3 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_capacity_request_policy.py b/kubernetes/client/models/v1_capacity_request_policy.py new file mode 100644 index 000000000..e0229b4ba --- /dev/null +++ b/kubernetes/client/models/v1_capacity_request_policy.py @@ -0,0 +1,176 @@ +# 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.34 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1CapacityRequestPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'default': 'str', + 'valid_range': 'V1CapacityRequestPolicyRange', + 'valid_values': 'list[str]' + } + + attribute_map = { + 'default': 'default', + 'valid_range': 'validRange', + 'valid_values': 'validValues' + } + + def __init__(self, default=None, valid_range=None, valid_values=None, local_vars_configuration=None): # noqa: E501 + """V1CapacityRequestPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._default = None + self._valid_range = None + self._valid_values = None + self.discriminator = None + + if default is not None: + self.default = default + if valid_range is not None: + self.valid_range = valid_range + if valid_values is not None: + self.valid_values = valid_values + + @property + def default(self): + """Gets the default of this V1CapacityRequestPolicy. # noqa: E501 + + Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity. # noqa: E501 + + :return: The default of this V1CapacityRequestPolicy. # noqa: E501 + :rtype: str + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this V1CapacityRequestPolicy. + + Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity. # noqa: E501 + + :param default: The default of this V1CapacityRequestPolicy. # noqa: E501 + :type: str + """ + + self._default = default + + @property + def valid_range(self): + """Gets the valid_range of this V1CapacityRequestPolicy. # noqa: E501 + + + :return: The valid_range of this V1CapacityRequestPolicy. # noqa: E501 + :rtype: V1CapacityRequestPolicyRange + """ + return self._valid_range + + @valid_range.setter + def valid_range(self, valid_range): + """Sets the valid_range of this V1CapacityRequestPolicy. + + + :param valid_range: The valid_range of this V1CapacityRequestPolicy. # noqa: E501 + :type: V1CapacityRequestPolicyRange + """ + + self._valid_range = valid_range + + @property + def valid_values(self): + """Gets the valid_values of this V1CapacityRequestPolicy. # noqa: E501 + + ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. # noqa: E501 + + :return: The valid_values of this V1CapacityRequestPolicy. # noqa: E501 + :rtype: list[str] + """ + return self._valid_values + + @valid_values.setter + def valid_values(self, valid_values): + """Sets the valid_values of this V1CapacityRequestPolicy. + + ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. # noqa: E501 + + :param valid_values: The valid_values of this V1CapacityRequestPolicy. # noqa: E501 + :type: list[str] + """ + + self._valid_values = valid_values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1CapacityRequestPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1CapacityRequestPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_capacity_request_policy_range.py b/kubernetes/client/models/v1_capacity_request_policy_range.py new file mode 100644 index 000000000..63f9d4805 --- /dev/null +++ b/kubernetes/client/models/v1_capacity_request_policy_range.py @@ -0,0 +1,179 @@ +# 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.34 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1CapacityRequestPolicyRange(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'max': 'str', + 'min': 'str', + 'step': 'str' + } + + attribute_map = { + 'max': 'max', + 'min': 'min', + 'step': 'step' + } + + def __init__(self, max=None, min=None, step=None, local_vars_configuration=None): # noqa: E501 + """V1CapacityRequestPolicyRange - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._max = None + self._min = None + self._step = None + self.discriminator = None + + if max is not None: + self.max = max + self.min = min + if step is not None: + self.step = step + + @property + def max(self): + """Gets the max of this V1CapacityRequestPolicyRange. # noqa: E501 + + Max defines the upper limit for capacity that can be requested. Max must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum. # noqa: E501 + + :return: The max of this V1CapacityRequestPolicyRange. # noqa: E501 + :rtype: str + """ + return self._max + + @max.setter + def max(self, max): + """Sets the max of this V1CapacityRequestPolicyRange. + + Max defines the upper limit for capacity that can be requested. Max must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum. # noqa: E501 + + :param max: The max of this V1CapacityRequestPolicyRange. # noqa: E501 + :type: str + """ + + self._max = max + + @property + def min(self): + """Gets the min of this V1CapacityRequestPolicyRange. # noqa: E501 + + Min specifies the minimum capacity allowed for a consumption request. Min must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum. # noqa: E501 + + :return: The min of this V1CapacityRequestPolicyRange. # noqa: E501 + :rtype: str + """ + return self._min + + @min.setter + def min(self, min): + """Sets the min of this V1CapacityRequestPolicyRange. + + Min specifies the minimum capacity allowed for a consumption request. Min must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum. # noqa: E501 + + :param min: The min of this V1CapacityRequestPolicyRange. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and min is None: # noqa: E501 + raise ValueError("Invalid value for `min`, must not be `None`") # noqa: E501 + + self._min = min + + @property + def step(self): + """Gets the step of this V1CapacityRequestPolicyRange. # noqa: E501 + + Step defines the step size between valid capacity amounts within the range. Max (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value. # noqa: E501 + + :return: The step of this V1CapacityRequestPolicyRange. # noqa: E501 + :rtype: str + """ + return self._step + + @step.setter + def step(self, step): + """Sets the step of this V1CapacityRequestPolicyRange. + + Step defines the step size between valid capacity amounts within the range. Max (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value. # noqa: E501 + + :param step: The step of this V1CapacityRequestPolicyRange. # noqa: E501 + :type: str + """ + + self._step = step + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1CapacityRequestPolicyRange): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1CapacityRequestPolicyRange): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_capacity_requirements.py b/kubernetes/client/models/v1_capacity_requirements.py new file mode 100644 index 000000000..6d2d1d124 --- /dev/null +++ b/kubernetes/client/models/v1_capacity_requirements.py @@ -0,0 +1,122 @@ +# 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.34 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1CapacityRequirements(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'requests': 'dict(str, str)' + } + + attribute_map = { + 'requests': 'requests' + } + + def __init__(self, requests=None, local_vars_configuration=None): # noqa: E501 + """V1CapacityRequirements - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._requests = None + self.discriminator = None + + if requests is not None: + self.requests = requests + + @property + def requests(self): + """Gets the requests of this V1CapacityRequirements. # noqa: E501 + + Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[]..compareTo(quantity()) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. # noqa: E501 + + :return: The requests of this V1CapacityRequirements. # noqa: E501 + :rtype: dict(str, str) + """ + return self._requests + + @requests.setter + def requests(self, requests): + """Sets the requests of this V1CapacityRequirements. + + Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[]..compareTo(quantity()) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. # noqa: E501 + + :param requests: The requests of this V1CapacityRequirements. # noqa: E501 + :type: dict(str, str) + """ + + self._requests = requests + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1CapacityRequirements): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1CapacityRequirements): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_cel_device_selector.py b/kubernetes/client/models/v1_cel_device_selector.py new file mode 100644 index 000000000..4f560e356 --- /dev/null +++ b/kubernetes/client/models/v1_cel_device_selector.py @@ -0,0 +1,123 @@ +# 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.34 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1CELDeviceSelector(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'expression': 'str' + } + + attribute_map = { + 'expression': 'expression' + } + + def __init__(self, expression=None, local_vars_configuration=None): # noqa: E501 + """V1CELDeviceSelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._expression = None + self.discriminator = None + + self.expression = expression + + @property + def expression(self): + """Gets the expression of this V1CELDeviceSelector. # noqa: E501 + + Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. # noqa: E501 + + :return: The expression of this V1CELDeviceSelector. # noqa: E501 + :rtype: str + """ + return self._expression + + @expression.setter + def expression(self, expression): + """Sets the expression of this V1CELDeviceSelector. + + Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. # noqa: E501 + + :param expression: The expression of this V1CELDeviceSelector. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and expression is None: # noqa: E501 + raise ValueError("Invalid value for `expression`, must not be `None`") # noqa: E501 + + self._expression = expression + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1CELDeviceSelector): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1CELDeviceSelector): + return True + + return self.to_dict() != other.to_dict() 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 b6ab2f59b..e58ff203a 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_ceph_fs_volume_source.py b/kubernetes/client/models/v1_ceph_fs_volume_source.py index a68767ec4..03e189bdc 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_certificate_signing_request.py b/kubernetes/client/models/v1_certificate_signing_request.py index 0f2d92d89..b1f579b85 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_certificate_signing_request_condition.py b/kubernetes/client/models/v1_certificate_signing_request_condition.py index 1ee215aff..04075c0ad 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_certificate_signing_request_list.py b/kubernetes/client/models/v1_certificate_signing_request_list.py index 30958cb0b..783f0546e 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_certificate_signing_request_spec.py b/kubernetes/client/models/v1_certificate_signing_request_spec.py index 033e10d8c..967dbc32b 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_certificate_signing_request_status.py b/kubernetes/client/models/v1_certificate_signing_request_status.py index 8923ac588..f95df792f 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_cinder_persistent_volume_source.py b/kubernetes/client/models/v1_cinder_persistent_volume_source.py index 5a6945537..d52eafbde 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_cinder_volume_source.py b/kubernetes/client/models/v1_cinder_volume_source.py index 1787f0006..00adcb0fe 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_client_ip_config.py b/kubernetes/client/models/v1_client_ip_config.py index 77148891e..063eadf87 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_cluster_role.py b/kubernetes/client/models/v1_cluster_role.py index 63e93870b..f1be5dc26 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_cluster_role_binding.py b/kubernetes/client/models/v1_cluster_role_binding.py index 77fd9c7ae..4d0922063 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_cluster_role_binding_list.py b/kubernetes/client/models/v1_cluster_role_binding_list.py index eacfed22c..5ed86f137 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_cluster_role_list.py b/kubernetes/client/models/v1_cluster_role_list.py index bce77c5ee..87ac2c5ea 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_cluster_trust_bundle_projection.py b/kubernetes/client/models/v1_cluster_trust_bundle_projection.py index 3b4006cbb..c5fd33d65 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_component_condition.py b/kubernetes/client/models/v1_component_condition.py index 2f7c32667..a5e37b2f7 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_component_status.py b/kubernetes/client/models/v1_component_status.py index 694a34989..1c6078f00 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_component_status_list.py b/kubernetes/client/models/v1_component_status_list.py index 769ac8913..c97175d99 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_condition.py b/kubernetes/client/models/v1_condition.py index 226eb7685..965d832bb 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_config_map.py b/kubernetes/client/models/v1_config_map.py index 9532f67f3..4fc1693ea 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_config_map_env_source.py b/kubernetes/client/models/v1_config_map_env_source.py index fbe24f6b5..82464b622 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_config_map_key_selector.py b/kubernetes/client/models/v1_config_map_key_selector.py index 9087a9df8..2823e06e7 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_config_map_list.py b/kubernetes/client/models/v1_config_map_list.py index 7e690e602..9c5a9cd6d 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ 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 358cfde24..e5f2e107a 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_config_map_projection.py b/kubernetes/client/models/v1_config_map_projection.py index 3ad46f2b4..8ed2ed208 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_config_map_volume_source.py b/kubernetes/client/models/v1_config_map_volume_source.py index 1f4fb52e7..c67923816 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_container.py b/kubernetes/client/models/v1_container.py index 4b90e8c9e..627bcf8a0 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -47,6 +47,7 @@ class V1Container(object): 'resize_policy': 'list[V1ContainerResizePolicy]', 'resources': 'V1ResourceRequirements', 'restart_policy': 'str', + 'restart_policy_rules': 'list[V1ContainerRestartRule]', 'security_context': 'V1SecurityContext', 'startup_probe': 'V1Probe', 'stdin': 'bool', @@ -74,6 +75,7 @@ class V1Container(object): 'resize_policy': 'resizePolicy', 'resources': 'resources', 'restart_policy': 'restartPolicy', + 'restart_policy_rules': 'restartPolicyRules', 'security_context': 'securityContext', 'startup_probe': 'startupProbe', 'stdin': 'stdin', @@ -86,7 +88,7 @@ class V1Container(object): 'working_dir': 'workingDir' } - def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resize_policy=None, resources=None, restart_policy=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resize_policy=None, resources=None, restart_policy=None, restart_policy_rules=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, local_vars_configuration=None): # noqa: E501 """V1Container - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -106,6 +108,7 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self._resize_policy = None self._resources = None self._restart_policy = None + self._restart_policy_rules = None self._security_context = None self._startup_probe = None self._stdin = None @@ -145,6 +148,8 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self.resources = resources if restart_policy is not None: self.restart_policy = restart_policy + if restart_policy_rules is not None: + self.restart_policy_rules = restart_policy_rules if security_context is not None: self.security_context = security_context if startup_probe is not None: @@ -239,7 +244,7 @@ def env(self, env): def env_from(self): """Gets the env_from of this V1Container. # noqa: E501 - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501 + List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501 :return: The env_from of this V1Container. # noqa: E501 :rtype: list[V1EnvFromSource] @@ -250,7 +255,7 @@ def env_from(self): def env_from(self, env_from): """Sets the env_from of this V1Container. - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501 + List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501 :param env_from: The env_from of this V1Container. # noqa: E501 :type: list[V1EnvFromSource] @@ -463,7 +468,7 @@ def resources(self, resources): def restart_policy(self): """Gets the restart_policy of this V1Container. # noqa: E501 - RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501 + RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Additionally, setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501 :return: The restart_policy of this V1Container. # noqa: E501 :rtype: str @@ -474,7 +479,7 @@ def restart_policy(self): def restart_policy(self, restart_policy): """Sets the restart_policy of this V1Container. - RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501 + RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Additionally, setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501 :param restart_policy: The restart_policy of this V1Container. # noqa: E501 :type: str @@ -482,6 +487,29 @@ def restart_policy(self, restart_policy): self._restart_policy = restart_policy + @property + def restart_policy_rules(self): + """Gets the restart_policy_rules of this V1Container. # noqa: E501 + + Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy. # noqa: E501 + + :return: The restart_policy_rules of this V1Container. # noqa: E501 + :rtype: list[V1ContainerRestartRule] + """ + return self._restart_policy_rules + + @restart_policy_rules.setter + def restart_policy_rules(self, restart_policy_rules): + """Sets the restart_policy_rules of this V1Container. + + Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy. # noqa: E501 + + :param restart_policy_rules: The restart_policy_rules of this V1Container. # noqa: E501 + :type: list[V1ContainerRestartRule] + """ + + self._restart_policy_rules = restart_policy_rules + @property def security_context(self): """Gets the security_context of this V1Container. # noqa: E501 diff --git a/kubernetes/client/models/v1_container_extended_resource_request.py b/kubernetes/client/models/v1_container_extended_resource_request.py new file mode 100644 index 000000000..6eae2f728 --- /dev/null +++ b/kubernetes/client/models/v1_container_extended_resource_request.py @@ -0,0 +1,181 @@ +# 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.34 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ContainerExtendedResourceRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'container_name': 'str', + 'request_name': 'str', + 'resource_name': 'str' + } + + attribute_map = { + 'container_name': 'containerName', + 'request_name': 'requestName', + 'resource_name': 'resourceName' + } + + def __init__(self, container_name=None, request_name=None, resource_name=None, local_vars_configuration=None): # noqa: E501 + """V1ContainerExtendedResourceRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._container_name = None + self._request_name = None + self._resource_name = None + self.discriminator = None + + self.container_name = container_name + self.request_name = request_name + self.resource_name = resource_name + + @property + def container_name(self): + """Gets the container_name of this V1ContainerExtendedResourceRequest. # noqa: E501 + + The name of the container requesting resources. # noqa: E501 + + :return: The container_name of this V1ContainerExtendedResourceRequest. # noqa: E501 + :rtype: str + """ + return self._container_name + + @container_name.setter + def container_name(self, container_name): + """Sets the container_name of this V1ContainerExtendedResourceRequest. + + The name of the container requesting resources. # noqa: E501 + + :param container_name: The container_name of this V1ContainerExtendedResourceRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and container_name is None: # noqa: E501 + raise ValueError("Invalid value for `container_name`, must not be `None`") # noqa: E501 + + self._container_name = container_name + + @property + def request_name(self): + """Gets the request_name of this V1ContainerExtendedResourceRequest. # noqa: E501 + + The name of the request in the special ResourceClaim which corresponds to the extended resource. # noqa: E501 + + :return: The request_name of this V1ContainerExtendedResourceRequest. # noqa: E501 + :rtype: str + """ + return self._request_name + + @request_name.setter + def request_name(self, request_name): + """Sets the request_name of this V1ContainerExtendedResourceRequest. + + The name of the request in the special ResourceClaim which corresponds to the extended resource. # noqa: E501 + + :param request_name: The request_name of this V1ContainerExtendedResourceRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and request_name is None: # noqa: E501 + raise ValueError("Invalid value for `request_name`, must not be `None`") # noqa: E501 + + self._request_name = request_name + + @property + def resource_name(self): + """Gets the resource_name of this V1ContainerExtendedResourceRequest. # noqa: E501 + + The name of the extended resource in that container which gets backed by DRA. # noqa: E501 + + :return: The resource_name of this V1ContainerExtendedResourceRequest. # noqa: E501 + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """Sets the resource_name of this V1ContainerExtendedResourceRequest. + + The name of the extended resource in that container which gets backed by DRA. # noqa: E501 + + :param resource_name: The resource_name of this V1ContainerExtendedResourceRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and resource_name is None: # noqa: E501 + raise ValueError("Invalid value for `resource_name`, must not be `None`") # noqa: E501 + + self._resource_name = resource_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ContainerExtendedResourceRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ContainerExtendedResourceRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_container_image.py b/kubernetes/client/models/v1_container_image.py index 064c73dd2..c3db0c74f 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_container_port.py b/kubernetes/client/models/v1_container_port.py index 384c88b41..aba2c9575 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_container_resize_policy.py b/kubernetes/client/models/v1_container_resize_policy.py index c23ffa2cb..a40aeda62 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1alpha3_device.py b/kubernetes/client/models/v1_container_restart_rule.py similarity index 54% rename from kubernetes/client/models/v1alpha3_device.py rename to kubernetes/client/models/v1_container_restart_rule.py index 15d0c8300..174cd86d8 100644 --- a/kubernetes/client/models/v1alpha3_device.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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3Device(object): +class V1ContainerRestartRule(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,74 +33,74 @@ class V1alpha3Device(object): and the value is json key in definition. """ openapi_types = { - 'basic': 'V1alpha3BasicDevice', - 'name': 'str' + 'action': 'str', + 'exit_codes': 'V1ContainerRestartRuleOnExitCodes' } attribute_map = { - 'basic': 'basic', - 'name': 'name' + 'action': 'action', + 'exit_codes': 'exitCodes' } - def __init__(self, basic=None, name=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3Device - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, action=None, exit_codes=None, local_vars_configuration=None): # noqa: E501 + """V1ContainerRestartRule - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration - self._basic = None - self._name = None + self._action = None + self._exit_codes = None self.discriminator = None - if basic is not None: - self.basic = basic - self.name = name + self.action = action + if exit_codes is not None: + self.exit_codes = exit_codes @property - def basic(self): - """Gets the basic of this V1alpha3Device. # noqa: E501 + def action(self): + """Gets the action of this V1ContainerRestartRule. # noqa: E501 + Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container. # noqa: E501 - :return: The basic of this V1alpha3Device. # noqa: E501 - :rtype: V1alpha3BasicDevice + :return: The action of this V1ContainerRestartRule. # noqa: E501 + :rtype: str """ - return self._basic + return self._action - @basic.setter - def basic(self, basic): - """Sets the basic of this V1alpha3Device. + @action.setter + def action(self, action): + """Sets the action of this V1ContainerRestartRule. + Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container. # noqa: E501 - :param basic: The basic of this V1alpha3Device. # noqa: E501 - :type: V1alpha3BasicDevice + :param action: The action of this V1ContainerRestartRule. # noqa: E501 + :type: str """ + if self.local_vars_configuration.client_side_validation and action is None: # noqa: E501 + raise ValueError("Invalid value for `action`, must not be `None`") # noqa: E501 - self._basic = basic + self._action = action @property - def name(self): - """Gets the name of this V1alpha3Device. # noqa: E501 + def exit_codes(self): + """Gets the exit_codes of this V1ContainerRestartRule. # noqa: E501 - Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. # noqa: E501 - :return: The name of this V1alpha3Device. # noqa: E501 - :rtype: str + :return: The exit_codes of this V1ContainerRestartRule. # noqa: E501 + :rtype: V1ContainerRestartRuleOnExitCodes """ - return self._name + return self._exit_codes - @name.setter - def name(self, name): - """Sets the name of this V1alpha3Device. + @exit_codes.setter + def exit_codes(self, exit_codes): + """Sets the exit_codes of this V1ContainerRestartRule. - Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. # noqa: E501 - :param name: The name of this V1alpha3Device. # noqa: E501 - :type: str + :param exit_codes: The exit_codes of this V1ContainerRestartRule. # noqa: E501 + :type: V1ContainerRestartRuleOnExitCodes """ - if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._exit_codes = exit_codes def to_dict(self): """Returns the model properties as a dict""" @@ -136,14 +136,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3Device): + if not isinstance(other, V1ContainerRestartRule): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3Device): + if not isinstance(other, V1ContainerRestartRule): return True return self.to_dict() != other.to_dict() 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 new file mode 100644 index 000000000..341a8a04e --- /dev/null +++ b/kubernetes/client/models/v1_container_restart_rule_on_exit_codes.py @@ -0,0 +1,151 @@ +# 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.34 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ContainerRestartRuleOnExitCodes(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'operator': 'str', + 'values': 'list[int]' + } + + attribute_map = { + 'operator': 'operator', + 'values': 'values' + } + + def __init__(self, operator=None, values=None, local_vars_configuration=None): # noqa: E501 + """V1ContainerRestartRuleOnExitCodes - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._operator = None + self._values = None + self.discriminator = None + + self.operator = operator + if values is not None: + self.values = values + + @property + def operator(self): + """Gets the operator of this V1ContainerRestartRuleOnExitCodes. # noqa: E501 + + Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values. # noqa: E501 + + :return: The operator of this V1ContainerRestartRuleOnExitCodes. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this V1ContainerRestartRuleOnExitCodes. + + Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values. # noqa: E501 + + :param operator: The operator of this V1ContainerRestartRuleOnExitCodes. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + + @property + def values(self): + """Gets the values of this V1ContainerRestartRuleOnExitCodes. # noqa: E501 + + Specifies the set of values to check for container exit codes. At most 255 elements are allowed. # noqa: E501 + + :return: The values of this V1ContainerRestartRuleOnExitCodes. # noqa: E501 + :rtype: list[int] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this V1ContainerRestartRuleOnExitCodes. + + Specifies the set of values to check for container exit codes. At most 255 elements are allowed. # noqa: E501 + + :param values: The values of this V1ContainerRestartRuleOnExitCodes. # noqa: E501 + :type: list[int] + """ + + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ContainerRestartRuleOnExitCodes): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ContainerRestartRuleOnExitCodes): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_container_state.py b/kubernetes/client/models/v1_container_state.py index 0552659ab..ead4f7b92 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_container_state_running.py b/kubernetes/client/models/v1_container_state_running.py index 39776202d..382d0b21d 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_container_state_terminated.py b/kubernetes/client/models/v1_container_state_terminated.py index 1c21d8f33..a69ca222b 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_container_state_waiting.py b/kubernetes/client/models/v1_container_state_waiting.py index 3d824d0bd..016d50794 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_container_status.py b/kubernetes/client/models/v1_container_status.py index c75863107..d66ca3824 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_container_user.py b/kubernetes/client/models/v1_container_user.py index 1c8fddf1b..62a132cf1 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_controller_revision.py b/kubernetes/client/models/v1_controller_revision.py index 617e94e64..1492bf6ba 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_controller_revision_list.py b/kubernetes/client/models/v1_controller_revision_list.py index 3e186c4ea..eaba37b5d 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1alpha3_counter.py b/kubernetes/client/models/v1_counter.py similarity index 85% rename from kubernetes/client/models/v1alpha3_counter.py rename to kubernetes/client/models/v1_counter.py index 4c4a1f03e..69277a265 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3Counter(object): +class V1Counter(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -41,7 +41,7 @@ class V1alpha3Counter(object): } def __init__(self, value=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3Counter - a model defined in OpenAPI""" # noqa: E501 + """V1Counter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -53,22 +53,22 @@ def __init__(self, value=None, local_vars_configuration=None): # noqa: E501 @property def value(self): - """Gets the value of this V1alpha3Counter. # noqa: E501 + """Gets the value of this V1Counter. # noqa: E501 Value defines how much of a certain device counter is available. # noqa: E501 - :return: The value of this V1alpha3Counter. # noqa: E501 + :return: The value of this V1Counter. # noqa: E501 :rtype: str """ return self._value @value.setter def value(self, value): - """Sets the value of this V1alpha3Counter. + """Sets the value of this V1Counter. Value defines how much of a certain device counter is available. # noqa: E501 - :param value: The value of this V1alpha3Counter. # noqa: E501 + :param value: The value of this V1Counter. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 @@ -110,14 +110,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3Counter): + if not isinstance(other, V1Counter): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3Counter): + if not isinstance(other, V1Counter): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_counter_set.py b/kubernetes/client/models/v1_counter_set.py similarity index 63% rename from kubernetes/client/models/v1alpha3_counter_set.py rename to kubernetes/client/models/v1_counter_set.py index 143a9b9c0..7866b0a75 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3CounterSet(object): +class V1CounterSet(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,7 +33,7 @@ class V1alpha3CounterSet(object): and the value is json key in definition. """ openapi_types = { - 'counters': 'dict(str, V1alpha3Counter)', + 'counters': 'dict(str, V1Counter)', 'name': 'str' } @@ -43,7 +43,7 @@ class V1alpha3CounterSet(object): } def __init__(self, counters=None, name=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3CounterSet - a model defined in OpenAPI""" # noqa: E501 + """V1CounterSet - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -57,23 +57,23 @@ def __init__(self, counters=None, name=None, local_vars_configuration=None): # @property def counters(self): - """Gets the counters of this V1alpha3CounterSet. # noqa: E501 + """Gets the counters of this V1CounterSet. # noqa: E501 - Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32. # noqa: E501 + Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters in all sets is 32. # noqa: E501 - :return: The counters of this V1alpha3CounterSet. # noqa: E501 - :rtype: dict(str, V1alpha3Counter) + :return: The counters of this V1CounterSet. # noqa: E501 + :rtype: dict(str, V1Counter) """ return self._counters @counters.setter def counters(self, counters): - """Sets the counters of this V1alpha3CounterSet. + """Sets the counters of this V1CounterSet. - Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32. # noqa: E501 + Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters in all sets is 32. # noqa: E501 - :param counters: The counters of this V1alpha3CounterSet. # noqa: E501 - :type: dict(str, V1alpha3Counter) + :param counters: The counters of this V1CounterSet. # noqa: E501 + :type: dict(str, V1Counter) """ if self.local_vars_configuration.client_side_validation and counters is None: # noqa: E501 raise ValueError("Invalid value for `counters`, must not be `None`") # noqa: E501 @@ -82,22 +82,22 @@ def counters(self, counters): @property def name(self): - """Gets the name of this V1alpha3CounterSet. # noqa: E501 + """Gets the name of this V1CounterSet. # noqa: E501 - CounterSet is the name of the set from which the counters defined will be consumed. # noqa: E501 + Name defines the name of the counter set. It must be a DNS label. # noqa: E501 - :return: The name of this V1alpha3CounterSet. # noqa: E501 + :return: The name of this V1CounterSet. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this V1alpha3CounterSet. + """Sets the name of this V1CounterSet. - CounterSet is the name of the set from which the counters defined will be consumed. # noqa: E501 + Name defines the name of the counter set. It must be a DNS label. # noqa: E501 - :param name: The name of this V1alpha3CounterSet. # noqa: E501 + :param name: The name of this V1CounterSet. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 @@ -139,14 +139,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3CounterSet): + if not isinstance(other, V1CounterSet): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3CounterSet): + if not isinstance(other, V1CounterSet): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_cron_job.py b/kubernetes/client/models/v1_cron_job.py index 66efc4ec1..44bff7fe9 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_cron_job_list.py b/kubernetes/client/models/v1_cron_job_list.py index f62f7f811..70caf8ee6 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_cron_job_spec.py b/kubernetes/client/models/v1_cron_job_spec.py index 227695d54..1a466d85a 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_cron_job_status.py b/kubernetes/client/models/v1_cron_job_status.py index 02f75ac64..8486aaf90 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_cross_version_object_reference.py b/kubernetes/client/models/v1_cross_version_object_reference.py index 8b3c95463..5bdf1f0a3 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_csi_driver.py b/kubernetes/client/models/v1_csi_driver.py index 1a9a1ae0b..644c51ddc 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_csi_driver_list.py b/kubernetes/client/models/v1_csi_driver_list.py index 6aafce560..6d0301b26 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_csi_driver_spec.py b/kubernetes/client/models/v1_csi_driver_spec.py index ce94cd434..1239b3664 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -96,7 +96,7 @@ def __init__(self, attach_required=None, fs_group_policy=None, node_allocatable_ def attach_required(self): """Gets the attach_required of this V1CSIDriverSpec. # noqa: E501 - 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 CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. # noqa: E501 + attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. # noqa: E501 :return: The attach_required of this V1CSIDriverSpec. # noqa: E501 :rtype: bool @@ -107,7 +107,7 @@ def attach_required(self): def attach_required(self, attach_required): """Sets the attach_required of this V1CSIDriverSpec. - 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 CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. # noqa: E501 + attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. # noqa: E501 :param attach_required: The attach_required of this V1CSIDriverSpec. # noqa: E501 :type: bool @@ -142,7 +142,7 @@ def fs_group_policy(self, fs_group_policy): def node_allocatable_update_period_seconds(self): """Gets the node_allocatable_update_period_seconds of this V1CSIDriverSpec. # noqa: E501 - nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. # noqa: E501 + nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. # noqa: E501 :return: The node_allocatable_update_period_seconds of this V1CSIDriverSpec. # noqa: E501 :rtype: int @@ -153,7 +153,7 @@ def node_allocatable_update_period_seconds(self): def node_allocatable_update_period_seconds(self, node_allocatable_update_period_seconds): """Sets the node_allocatable_update_period_seconds of this V1CSIDriverSpec. - nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. # noqa: E501 + nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. # noqa: E501 :param node_allocatable_update_period_seconds: The node_allocatable_update_period_seconds of this V1CSIDriverSpec. # noqa: E501 :type: int diff --git a/kubernetes/client/models/v1_csi_node.py b/kubernetes/client/models/v1_csi_node.py index fba381f80..ea04497ac 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_csi_node_driver.py b/kubernetes/client/models/v1_csi_node_driver.py index 25ed8b050..4619301a6 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_csi_node_list.py b/kubernetes/client/models/v1_csi_node_list.py index 4a020d24b..307b5efa5 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_csi_node_spec.py b/kubernetes/client/models/v1_csi_node_spec.py index 90ba00a86..e9aab87a1 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_csi_persistent_volume_source.py b/kubernetes/client/models/v1_csi_persistent_volume_source.py index 3c0c0ba3b..6a58efaaf 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_csi_storage_capacity.py b/kubernetes/client/models/v1_csi_storage_capacity.py index b6461ddce..b3438c730 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_csi_storage_capacity_list.py b/kubernetes/client/models/v1_csi_storage_capacity_list.py index da7261b10..70742fe71 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_csi_volume_source.py b/kubernetes/client/models/v1_csi_volume_source.py index c14fc155c..b32c3b54c 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_custom_resource_column_definition.py b/kubernetes/client/models/v1_custom_resource_column_definition.py index 2a6eff31c..134d7568d 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_custom_resource_conversion.py b/kubernetes/client/models/v1_custom_resource_conversion.py index 6975d2c84..88083cd19 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_custom_resource_definition.py b/kubernetes/client/models/v1_custom_resource_definition.py index 84e3c2ecf..c34b5f0e9 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_custom_resource_definition_condition.py b/kubernetes/client/models/v1_custom_resource_definition_condition.py index b3e316955..f80c1115c 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_custom_resource_definition_list.py b/kubernetes/client/models/v1_custom_resource_definition_list.py index 55565e299..e8eef888e 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_custom_resource_definition_names.py b/kubernetes/client/models/v1_custom_resource_definition_names.py index d580b8e01..faf0c856a 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_custom_resource_definition_spec.py b/kubernetes/client/models/v1_custom_resource_definition_spec.py index 1574d872a..ef2ca2928 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_custom_resource_definition_status.py b/kubernetes/client/models/v1_custom_resource_definition_status.py index 0a14052b5..c83ff7c3f 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_custom_resource_definition_version.py b/kubernetes/client/models/v1_custom_resource_definition_version.py index 0651b329a..55c8eaff3 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_custom_resource_subresource_scale.py b/kubernetes/client/models/v1_custom_resource_subresource_scale.py index 239c9a745..97efd8ff9 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_custom_resource_subresources.py b/kubernetes/client/models/v1_custom_resource_subresources.py index 0c9b5bcd0..f7fc62877 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_custom_resource_validation.py b/kubernetes/client/models/v1_custom_resource_validation.py index 365dfbc34..f11a7a7f9 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_daemon_endpoint.py b/kubernetes/client/models/v1_daemon_endpoint.py index 98fe08d6e..9f3ab31cc 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_daemon_set.py b/kubernetes/client/models/v1_daemon_set.py index 6c5df53b3..3d13c27b8 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_daemon_set_condition.py b/kubernetes/client/models/v1_daemon_set_condition.py index 694e628d8..a46994adb 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_daemon_set_list.py b/kubernetes/client/models/v1_daemon_set_list.py index 8447d344a..c7c5270c2 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_daemon_set_spec.py b/kubernetes/client/models/v1_daemon_set_spec.py index 583e6c4a2..abdad44a6 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_daemon_set_status.py b/kubernetes/client/models/v1_daemon_set_status.py index 3801375ab..a9b11980a 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_daemon_set_update_strategy.py b/kubernetes/client/models/v1_daemon_set_update_strategy.py index d286d9804..907214958 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_delete_options.py b/kubernetes/client/models/v1_delete_options.py index 8bec1cfed..2f4200062 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_deployment.py b/kubernetes/client/models/v1_deployment.py index 394ef6411..a5189b910 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_deployment_condition.py b/kubernetes/client/models/v1_deployment_condition.py index a50dd01ef..ace525cc1 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_deployment_list.py b/kubernetes/client/models/v1_deployment_list.py index 4ac2249b2..690c77deb 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_deployment_spec.py b/kubernetes/client/models/v1_deployment_spec.py index 27ad72fa3..97d2af00f 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_deployment_status.py b/kubernetes/client/models/v1_deployment_status.py index bf72b772c..fe6320038 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_deployment_strategy.py b/kubernetes/client/models/v1_deployment_strategy.py index 9793060b9..438e334c3 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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/v1_device.py b/kubernetes/client/models/v1_device.py new file mode 100644 index 000000000..0572cc693 --- /dev/null +++ b/kubernetes/client/models/v1_device.py @@ -0,0 +1,429 @@ +# 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.34 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Device(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'all_nodes': 'bool', + 'allow_multiple_allocations': 'bool', + 'attributes': 'dict(str, V1DeviceAttribute)', + 'binding_conditions': 'list[str]', + 'binding_failure_conditions': 'list[str]', + 'binds_to_node': 'bool', + 'capacity': 'dict(str, V1DeviceCapacity)', + 'consumes_counters': 'list[V1DeviceCounterConsumption]', + 'name': 'str', + 'node_name': 'str', + 'node_selector': 'V1NodeSelector', + 'taints': 'list[V1DeviceTaint]' + } + + attribute_map = { + 'all_nodes': 'allNodes', + 'allow_multiple_allocations': 'allowMultipleAllocations', + 'attributes': 'attributes', + 'binding_conditions': 'bindingConditions', + 'binding_failure_conditions': 'bindingFailureConditions', + 'binds_to_node': 'bindsToNode', + 'capacity': 'capacity', + 'consumes_counters': 'consumesCounters', + 'name': 'name', + 'node_name': 'nodeName', + 'node_selector': 'nodeSelector', + 'taints': 'taints' + } + + def __init__(self, all_nodes=None, allow_multiple_allocations=None, attributes=None, binding_conditions=None, binding_failure_conditions=None, binds_to_node=None, capacity=None, consumes_counters=None, name=None, node_name=None, node_selector=None, taints=None, local_vars_configuration=None): # noqa: E501 + """V1Device - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._all_nodes = None + self._allow_multiple_allocations = None + self._attributes = None + self._binding_conditions = None + self._binding_failure_conditions = None + self._binds_to_node = None + self._capacity = None + self._consumes_counters = None + self._name = None + self._node_name = None + self._node_selector = None + self._taints = None + self.discriminator = None + + if all_nodes is not None: + self.all_nodes = all_nodes + if allow_multiple_allocations is not None: + self.allow_multiple_allocations = allow_multiple_allocations + if attributes is not None: + self.attributes = attributes + if binding_conditions is not None: + self.binding_conditions = binding_conditions + if binding_failure_conditions is not None: + self.binding_failure_conditions = binding_failure_conditions + if binds_to_node is not None: + self.binds_to_node = binds_to_node + if capacity is not None: + self.capacity = capacity + if consumes_counters is not None: + self.consumes_counters = consumes_counters + self.name = name + if node_name is not None: + self.node_name = node_name + if node_selector is not None: + self.node_selector = node_selector + if taints is not None: + self.taints = taints + + @property + def all_nodes(self): + """Gets the all_nodes of this V1Device. # noqa: E501 + + AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. # noqa: E501 + + :return: The all_nodes of this V1Device. # noqa: E501 + :rtype: bool + """ + return self._all_nodes + + @all_nodes.setter + def all_nodes(self, all_nodes): + """Sets the all_nodes of this V1Device. + + AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. # noqa: E501 + + :param all_nodes: The all_nodes of this V1Device. # noqa: E501 + :type: bool + """ + + self._all_nodes = all_nodes + + @property + def allow_multiple_allocations(self): + """Gets the allow_multiple_allocations of this V1Device. # noqa: E501 + + AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. # noqa: E501 + + :return: The allow_multiple_allocations of this V1Device. # noqa: E501 + :rtype: bool + """ + return self._allow_multiple_allocations + + @allow_multiple_allocations.setter + def allow_multiple_allocations(self, allow_multiple_allocations): + """Sets the allow_multiple_allocations of this V1Device. + + AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. # noqa: E501 + + :param allow_multiple_allocations: The allow_multiple_allocations of this V1Device. # noqa: E501 + :type: bool + """ + + self._allow_multiple_allocations = allow_multiple_allocations + + @property + def attributes(self): + """Gets the attributes of this V1Device. # noqa: E501 + + Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. # noqa: E501 + + :return: The attributes of this V1Device. # noqa: E501 + :rtype: dict(str, V1DeviceAttribute) + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this V1Device. + + Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. # noqa: E501 + + :param attributes: The attributes of this V1Device. # noqa: E501 + :type: dict(str, V1DeviceAttribute) + """ + + self._attributes = attributes + + @property + def binding_conditions(self): + """Gets the binding_conditions of this V1Device. # noqa: E501 + + BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501 + + :return: The binding_conditions of this V1Device. # noqa: E501 + :rtype: list[str] + """ + return self._binding_conditions + + @binding_conditions.setter + def binding_conditions(self, binding_conditions): + """Sets the binding_conditions of this V1Device. + + BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501 + + :param binding_conditions: The binding_conditions of this V1Device. # noqa: E501 + :type: list[str] + """ + + self._binding_conditions = binding_conditions + + @property + def binding_failure_conditions(self): + """Gets the binding_failure_conditions of this V1Device. # noqa: E501 + + BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501 + + :return: The binding_failure_conditions of this V1Device. # noqa: E501 + :rtype: list[str] + """ + return self._binding_failure_conditions + + @binding_failure_conditions.setter + def binding_failure_conditions(self, binding_failure_conditions): + """Sets the binding_failure_conditions of this V1Device. + + BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501 + + :param binding_failure_conditions: The binding_failure_conditions of this V1Device. # noqa: E501 + :type: list[str] + """ + + self._binding_failure_conditions = binding_failure_conditions + + @property + def binds_to_node(self): + """Gets the binds_to_node of this V1Device. # noqa: E501 + + BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501 + + :return: The binds_to_node of this V1Device. # noqa: E501 + :rtype: bool + """ + return self._binds_to_node + + @binds_to_node.setter + def binds_to_node(self, binds_to_node): + """Sets the binds_to_node of this V1Device. + + BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501 + + :param binds_to_node: The binds_to_node of this V1Device. # noqa: E501 + :type: bool + """ + + self._binds_to_node = binds_to_node + + @property + def capacity(self): + """Gets the capacity of this V1Device. # noqa: E501 + + 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. # noqa: E501 + + :return: The capacity of this V1Device. # noqa: E501 + :rtype: dict(str, V1DeviceCapacity) + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """Sets the capacity of this V1Device. + + 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. # noqa: E501 + + :param capacity: The capacity of this V1Device. # noqa: E501 + :type: dict(str, V1DeviceCapacity) + """ + + self._capacity = capacity + + @property + def consumes_counters(self): + """Gets the consumes_counters of this V1Device. # noqa: E501 + + 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 total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). # noqa: E501 + + :return: The consumes_counters of this V1Device. # noqa: E501 + :rtype: list[V1DeviceCounterConsumption] + """ + return self._consumes_counters + + @consumes_counters.setter + def consumes_counters(self, consumes_counters): + """Sets the consumes_counters of this V1Device. + + 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 total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). # noqa: E501 + + :param consumes_counters: The consumes_counters of this V1Device. # noqa: E501 + :type: list[V1DeviceCounterConsumption] + """ + + self._consumes_counters = consumes_counters + + @property + def name(self): + """Gets the name of this V1Device. # noqa: E501 + + Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. # noqa: E501 + + :return: The name of this V1Device. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1Device. + + Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. # noqa: E501 + + :param name: The name of this V1Device. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def node_name(self): + """Gets the node_name of this V1Device. # noqa: E501 + + 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. # noqa: E501 + + :return: The node_name of this V1Device. # noqa: E501 + :rtype: str + """ + return self._node_name + + @node_name.setter + def node_name(self, node_name): + """Sets the node_name of this V1Device. + + 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. # noqa: E501 + + :param node_name: The node_name of this V1Device. # noqa: E501 + :type: str + """ + + self._node_name = node_name + + @property + def node_selector(self): + """Gets the node_selector of this V1Device. # noqa: E501 + + + :return: The node_selector of this V1Device. # noqa: E501 + :rtype: V1NodeSelector + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """Sets the node_selector of this V1Device. + + + :param node_selector: The node_selector of this V1Device. # noqa: E501 + :type: V1NodeSelector + """ + + self._node_selector = node_selector + + @property + def taints(self): + """Gets the taints of this V1Device. # noqa: E501 + + If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501 + + :return: The taints of this V1Device. # noqa: E501 + :rtype: list[V1DeviceTaint] + """ + return self._taints + + @taints.setter + def taints(self, taints): + """Sets the taints of this V1Device. + + If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501 + + :param taints: The taints of this V1Device. # noqa: E501 + :type: list[V1DeviceTaint] + """ + + self._taints = taints + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Device): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Device): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_allocation_configuration.py b/kubernetes/client/models/v1_device_allocation_configuration.py similarity index 76% rename from kubernetes/client/models/v1alpha3_device_allocation_configuration.py rename to kubernetes/client/models/v1_device_allocation_configuration.py index 4fa7345fe..39977c79c 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceAllocationConfiguration(object): +class V1DeviceAllocationConfiguration(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,7 +33,7 @@ class V1alpha3DeviceAllocationConfiguration(object): and the value is json key in definition. """ openapi_types = { - 'opaque': 'V1alpha3OpaqueDeviceConfiguration', + 'opaque': 'V1OpaqueDeviceConfiguration', 'requests': 'list[str]', 'source': 'str' } @@ -45,7 +45,7 @@ class V1alpha3DeviceAllocationConfiguration(object): } def __init__(self, opaque=None, requests=None, source=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceAllocationConfiguration - a model defined in OpenAPI""" # noqa: E501 + """V1DeviceAllocationConfiguration - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -63,43 +63,43 @@ def __init__(self, opaque=None, requests=None, source=None, local_vars_configura @property def opaque(self): - """Gets the opaque of this V1alpha3DeviceAllocationConfiguration. # noqa: E501 + """Gets the opaque of this V1DeviceAllocationConfiguration. # noqa: E501 - :return: The opaque of this V1alpha3DeviceAllocationConfiguration. # noqa: E501 - :rtype: V1alpha3OpaqueDeviceConfiguration + :return: The opaque of this V1DeviceAllocationConfiguration. # noqa: E501 + :rtype: V1OpaqueDeviceConfiguration """ return self._opaque @opaque.setter def opaque(self, opaque): - """Sets the opaque of this V1alpha3DeviceAllocationConfiguration. + """Sets the opaque of this V1DeviceAllocationConfiguration. - :param opaque: The opaque of this V1alpha3DeviceAllocationConfiguration. # noqa: E501 - :type: V1alpha3OpaqueDeviceConfiguration + :param opaque: The opaque of this V1DeviceAllocationConfiguration. # noqa: E501 + :type: V1OpaqueDeviceConfiguration """ self._opaque = opaque @property def requests(self): - """Gets the requests of this V1alpha3DeviceAllocationConfiguration. # noqa: E501 + """Gets the requests of this V1DeviceAllocationConfiguration. # noqa: E501 Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. # noqa: E501 - :return: The requests of this V1alpha3DeviceAllocationConfiguration. # noqa: E501 + :return: The requests of this V1DeviceAllocationConfiguration. # noqa: E501 :rtype: list[str] """ return self._requests @requests.setter def requests(self, requests): - """Sets the requests of this V1alpha3DeviceAllocationConfiguration. + """Sets the requests of this V1DeviceAllocationConfiguration. Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. # noqa: E501 - :param requests: The requests of this V1alpha3DeviceAllocationConfiguration. # noqa: E501 + :param requests: The requests of this V1DeviceAllocationConfiguration. # noqa: E501 :type: list[str] """ @@ -107,22 +107,22 @@ def requests(self, requests): @property def source(self): - """Gets the source of this V1alpha3DeviceAllocationConfiguration. # noqa: E501 + """Gets the source of this V1DeviceAllocationConfiguration. # noqa: E501 Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim. # noqa: E501 - :return: The source of this V1alpha3DeviceAllocationConfiguration. # noqa: E501 + :return: The source of this V1DeviceAllocationConfiguration. # noqa: E501 :rtype: str """ return self._source @source.setter def source(self, source): - """Sets the source of this V1alpha3DeviceAllocationConfiguration. + """Sets the source of this V1DeviceAllocationConfiguration. Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim. # noqa: E501 - :param source: The source of this V1alpha3DeviceAllocationConfiguration. # noqa: E501 + :param source: The source of this V1DeviceAllocationConfiguration. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 @@ -164,14 +164,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3DeviceAllocationConfiguration): + if not isinstance(other, V1DeviceAllocationConfiguration): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3DeviceAllocationConfiguration): + if not isinstance(other, V1DeviceAllocationConfiguration): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_allocation_result.py b/kubernetes/client/models/v1_device_allocation_result.py similarity index 75% rename from kubernetes/client/models/v1alpha3_device_allocation_result.py rename to kubernetes/client/models/v1_device_allocation_result.py index 77d98ed20..0296674a9 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceAllocationResult(object): +class V1DeviceAllocationResult(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,8 +33,8 @@ class V1alpha3DeviceAllocationResult(object): and the value is json key in definition. """ openapi_types = { - 'config': 'list[V1alpha3DeviceAllocationConfiguration]', - 'results': 'list[V1alpha3DeviceRequestAllocationResult]' + 'config': 'list[V1DeviceAllocationConfiguration]', + 'results': 'list[V1DeviceRequestAllocationResult]' } attribute_map = { @@ -43,7 +43,7 @@ class V1alpha3DeviceAllocationResult(object): } def __init__(self, config=None, results=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceAllocationResult - a model defined in OpenAPI""" # noqa: E501 + """V1DeviceAllocationResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -59,46 +59,46 @@ def __init__(self, config=None, results=None, local_vars_configuration=None): # @property def config(self): - """Gets the config of this V1alpha3DeviceAllocationResult. # noqa: E501 + """Gets the config of this V1DeviceAllocationResult. # noqa: E501 This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. # noqa: E501 - :return: The config of this V1alpha3DeviceAllocationResult. # noqa: E501 - :rtype: list[V1alpha3DeviceAllocationConfiguration] + :return: The config of this V1DeviceAllocationResult. # noqa: E501 + :rtype: list[V1DeviceAllocationConfiguration] """ return self._config @config.setter def config(self, config): - """Sets the config of this V1alpha3DeviceAllocationResult. + """Sets the config of this V1DeviceAllocationResult. This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. # noqa: E501 - :param config: The config of this V1alpha3DeviceAllocationResult. # noqa: E501 - :type: list[V1alpha3DeviceAllocationConfiguration] + :param config: The config of this V1DeviceAllocationResult. # noqa: E501 + :type: list[V1DeviceAllocationConfiguration] """ self._config = config @property def results(self): - """Gets the results of this V1alpha3DeviceAllocationResult. # noqa: E501 + """Gets the results of this V1DeviceAllocationResult. # noqa: E501 Results lists all allocated devices. # noqa: E501 - :return: The results of this V1alpha3DeviceAllocationResult. # noqa: E501 - :rtype: list[V1alpha3DeviceRequestAllocationResult] + :return: The results of this V1DeviceAllocationResult. # noqa: E501 + :rtype: list[V1DeviceRequestAllocationResult] """ return self._results @results.setter def results(self, results): - """Sets the results of this V1alpha3DeviceAllocationResult. + """Sets the results of this V1DeviceAllocationResult. Results lists all allocated devices. # noqa: E501 - :param results: The results of this V1alpha3DeviceAllocationResult. # noqa: E501 - :type: list[V1alpha3DeviceRequestAllocationResult] + :param results: The results of this V1DeviceAllocationResult. # noqa: E501 + :type: list[V1DeviceRequestAllocationResult] """ self._results = results @@ -137,14 +137,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3DeviceAllocationResult): + if not isinstance(other, V1DeviceAllocationResult): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3DeviceAllocationResult): + if not isinstance(other, V1DeviceAllocationResult): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_attribute.py b/kubernetes/client/models/v1_device_attribute.py similarity index 76% rename from kubernetes/client/models/v1alpha3_device_attribute.py rename to kubernetes/client/models/v1_device_attribute.py index 7551a8219..1f5701c9b 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceAttribute(object): +class V1DeviceAttribute(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -47,7 +47,7 @@ class V1alpha3DeviceAttribute(object): } def __init__(self, bool=None, int=None, string=None, version=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceAttribute - a model defined in OpenAPI""" # noqa: E501 + """V1DeviceAttribute - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -69,22 +69,22 @@ def __init__(self, bool=None, int=None, string=None, version=None, local_vars_co @property def bool(self): - """Gets the bool of this V1alpha3DeviceAttribute. # noqa: E501 + """Gets the bool of this V1DeviceAttribute. # noqa: E501 BoolValue is a true/false value. # noqa: E501 - :return: The bool of this V1alpha3DeviceAttribute. # noqa: E501 + :return: The bool of this V1DeviceAttribute. # noqa: E501 :rtype: bool """ return self._bool @bool.setter def bool(self, bool): - """Sets the bool of this V1alpha3DeviceAttribute. + """Sets the bool of this V1DeviceAttribute. BoolValue is a true/false value. # noqa: E501 - :param bool: The bool of this V1alpha3DeviceAttribute. # noqa: E501 + :param bool: The bool of this V1DeviceAttribute. # noqa: E501 :type: bool """ @@ -92,22 +92,22 @@ def bool(self, bool): @property def int(self): - """Gets the int of this V1alpha3DeviceAttribute. # noqa: E501 + """Gets the int of this V1DeviceAttribute. # noqa: E501 IntValue is a number. # noqa: E501 - :return: The int of this V1alpha3DeviceAttribute. # noqa: E501 + :return: The int of this V1DeviceAttribute. # noqa: E501 :rtype: int """ return self._int @int.setter def int(self, int): - """Sets the int of this V1alpha3DeviceAttribute. + """Sets the int of this V1DeviceAttribute. IntValue is a number. # noqa: E501 - :param int: The int of this V1alpha3DeviceAttribute. # noqa: E501 + :param int: The int of this V1DeviceAttribute. # noqa: E501 :type: int """ @@ -115,22 +115,22 @@ def int(self, int): @property def string(self): - """Gets the string of this V1alpha3DeviceAttribute. # noqa: E501 + """Gets the string of this V1DeviceAttribute. # noqa: E501 StringValue is a string. Must not be longer than 64 characters. # noqa: E501 - :return: The string of this V1alpha3DeviceAttribute. # noqa: E501 + :return: The string of this V1DeviceAttribute. # noqa: E501 :rtype: str """ return self._string @string.setter def string(self, string): - """Sets the string of this V1alpha3DeviceAttribute. + """Sets the string of this V1DeviceAttribute. StringValue is a string. Must not be longer than 64 characters. # noqa: E501 - :param string: The string of this V1alpha3DeviceAttribute. # noqa: E501 + :param string: The string of this V1DeviceAttribute. # noqa: E501 :type: str """ @@ -138,22 +138,22 @@ def string(self, string): @property def version(self): - """Gets the version of this V1alpha3DeviceAttribute. # noqa: E501 + """Gets the version of this V1DeviceAttribute. # noqa: E501 VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. # noqa: E501 - :return: The version of this V1alpha3DeviceAttribute. # noqa: E501 + :return: The version of this V1DeviceAttribute. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """Sets the version of this V1alpha3DeviceAttribute. + """Sets the version of this V1DeviceAttribute. VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. # noqa: E501 - :param version: The version of this V1alpha3DeviceAttribute. # noqa: E501 + :param version: The version of this V1DeviceAttribute. # noqa: E501 :type: str """ @@ -193,14 +193,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3DeviceAttribute): + if not isinstance(other, V1DeviceAttribute): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3DeviceAttribute): + if not isinstance(other, V1DeviceAttribute): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_device_capacity.py b/kubernetes/client/models/v1_device_capacity.py new file mode 100644 index 000000000..ed46a0907 --- /dev/null +++ b/kubernetes/client/models/v1_device_capacity.py @@ -0,0 +1,149 @@ +# 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.34 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1DeviceCapacity(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'request_policy': 'V1CapacityRequestPolicy', + 'value': 'str' + } + + attribute_map = { + 'request_policy': 'requestPolicy', + 'value': 'value' + } + + def __init__(self, request_policy=None, value=None, local_vars_configuration=None): # noqa: E501 + """V1DeviceCapacity - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._request_policy = None + self._value = None + self.discriminator = None + + if request_policy is not None: + self.request_policy = request_policy + self.value = value + + @property + def request_policy(self): + """Gets the request_policy of this V1DeviceCapacity. # noqa: E501 + + + :return: The request_policy of this V1DeviceCapacity. # noqa: E501 + :rtype: V1CapacityRequestPolicy + """ + return self._request_policy + + @request_policy.setter + def request_policy(self, request_policy): + """Sets the request_policy of this V1DeviceCapacity. + + + :param request_policy: The request_policy of this V1DeviceCapacity. # noqa: E501 + :type: V1CapacityRequestPolicy + """ + + self._request_policy = request_policy + + @property + def value(self): + """Gets the value of this V1DeviceCapacity. # noqa: E501 + + Value defines how much of a certain capacity that device has. This field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value. # noqa: E501 + + :return: The value of this V1DeviceCapacity. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this V1DeviceCapacity. + + Value defines how much of a certain capacity that device has. This field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value. # noqa: E501 + + :param value: The value of this V1DeviceCapacity. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1DeviceCapacity): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1DeviceCapacity): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_claim.py b/kubernetes/client/models/v1_device_claim.py similarity index 73% rename from kubernetes/client/models/v1alpha3_device_claim.py rename to kubernetes/client/models/v1_device_claim.py index 81f5dac16..542c611d6 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceClaim(object): +class V1DeviceClaim(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,9 +33,9 @@ class V1alpha3DeviceClaim(object): and the value is json key in definition. """ openapi_types = { - 'config': 'list[V1alpha3DeviceClaimConfiguration]', - 'constraints': 'list[V1alpha3DeviceConstraint]', - 'requests': 'list[V1alpha3DeviceRequest]' + 'config': 'list[V1DeviceClaimConfiguration]', + 'constraints': 'list[V1DeviceConstraint]', + 'requests': 'list[V1DeviceRequest]' } attribute_map = { @@ -45,7 +45,7 @@ class V1alpha3DeviceClaim(object): } def __init__(self, config=None, constraints=None, requests=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceClaim - a model defined in OpenAPI""" # noqa: E501 + """V1DeviceClaim - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -64,69 +64,69 @@ def __init__(self, config=None, constraints=None, requests=None, local_vars_conf @property def config(self): - """Gets the config of this V1alpha3DeviceClaim. # noqa: E501 + """Gets the config of this V1DeviceClaim. # noqa: E501 This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. # noqa: E501 - :return: The config of this V1alpha3DeviceClaim. # noqa: E501 - :rtype: list[V1alpha3DeviceClaimConfiguration] + :return: The config of this V1DeviceClaim. # noqa: E501 + :rtype: list[V1DeviceClaimConfiguration] """ return self._config @config.setter def config(self, config): - """Sets the config of this V1alpha3DeviceClaim. + """Sets the config of this V1DeviceClaim. This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. # noqa: E501 - :param config: The config of this V1alpha3DeviceClaim. # noqa: E501 - :type: list[V1alpha3DeviceClaimConfiguration] + :param config: The config of this V1DeviceClaim. # noqa: E501 + :type: list[V1DeviceClaimConfiguration] """ self._config = config @property def constraints(self): - """Gets the constraints of this V1alpha3DeviceClaim. # noqa: E501 + """Gets the constraints of this V1DeviceClaim. # noqa: E501 These constraints must be satisfied by the set of devices that get allocated for the claim. # noqa: E501 - :return: The constraints of this V1alpha3DeviceClaim. # noqa: E501 - :rtype: list[V1alpha3DeviceConstraint] + :return: The constraints of this V1DeviceClaim. # noqa: E501 + :rtype: list[V1DeviceConstraint] """ return self._constraints @constraints.setter def constraints(self, constraints): - """Sets the constraints of this V1alpha3DeviceClaim. + """Sets the constraints of this V1DeviceClaim. These constraints must be satisfied by the set of devices that get allocated for the claim. # noqa: E501 - :param constraints: The constraints of this V1alpha3DeviceClaim. # noqa: E501 - :type: list[V1alpha3DeviceConstraint] + :param constraints: The constraints of this V1DeviceClaim. # noqa: E501 + :type: list[V1DeviceConstraint] """ self._constraints = constraints @property def requests(self): - """Gets the requests of this V1alpha3DeviceClaim. # noqa: E501 + """Gets the requests of this V1DeviceClaim. # noqa: E501 Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. # noqa: E501 - :return: The requests of this V1alpha3DeviceClaim. # noqa: E501 - :rtype: list[V1alpha3DeviceRequest] + :return: The requests of this V1DeviceClaim. # noqa: E501 + :rtype: list[V1DeviceRequest] """ return self._requests @requests.setter def requests(self, requests): - """Sets the requests of this V1alpha3DeviceClaim. + """Sets the requests of this V1DeviceClaim. Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. # noqa: E501 - :param requests: The requests of this V1alpha3DeviceClaim. # noqa: E501 - :type: list[V1alpha3DeviceRequest] + :param requests: The requests of this V1DeviceClaim. # noqa: E501 + :type: list[V1DeviceRequest] """ self._requests = requests @@ -165,14 +165,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3DeviceClaim): + if not isinstance(other, V1DeviceClaim): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3DeviceClaim): + if not isinstance(other, V1DeviceClaim): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_claim_configuration.py b/kubernetes/client/models/v1_device_claim_configuration.py similarity index 77% rename from kubernetes/client/models/v1alpha3_device_claim_configuration.py rename to kubernetes/client/models/v1_device_claim_configuration.py index d8e81d282..7d1622384 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceClaimConfiguration(object): +class V1DeviceClaimConfiguration(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,7 +33,7 @@ class V1alpha3DeviceClaimConfiguration(object): and the value is json key in definition. """ openapi_types = { - 'opaque': 'V1alpha3OpaqueDeviceConfiguration', + 'opaque': 'V1OpaqueDeviceConfiguration', 'requests': 'list[str]' } @@ -43,7 +43,7 @@ class V1alpha3DeviceClaimConfiguration(object): } def __init__(self, opaque=None, requests=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceClaimConfiguration - a model defined in OpenAPI""" # noqa: E501 + """V1DeviceClaimConfiguration - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -59,43 +59,43 @@ def __init__(self, opaque=None, requests=None, local_vars_configuration=None): @property def opaque(self): - """Gets the opaque of this V1alpha3DeviceClaimConfiguration. # noqa: E501 + """Gets the opaque of this V1DeviceClaimConfiguration. # noqa: E501 - :return: The opaque of this V1alpha3DeviceClaimConfiguration. # noqa: E501 - :rtype: V1alpha3OpaqueDeviceConfiguration + :return: The opaque of this V1DeviceClaimConfiguration. # noqa: E501 + :rtype: V1OpaqueDeviceConfiguration """ return self._opaque @opaque.setter def opaque(self, opaque): - """Sets the opaque of this V1alpha3DeviceClaimConfiguration. + """Sets the opaque of this V1DeviceClaimConfiguration. - :param opaque: The opaque of this V1alpha3DeviceClaimConfiguration. # noqa: E501 - :type: V1alpha3OpaqueDeviceConfiguration + :param opaque: The opaque of this V1DeviceClaimConfiguration. # noqa: E501 + :type: V1OpaqueDeviceConfiguration """ self._opaque = opaque @property def requests(self): - """Gets the requests of this V1alpha3DeviceClaimConfiguration. # noqa: E501 + """Gets the requests of this V1DeviceClaimConfiguration. # noqa: E501 Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. # noqa: E501 - :return: The requests of this V1alpha3DeviceClaimConfiguration. # noqa: E501 + :return: The requests of this V1DeviceClaimConfiguration. # noqa: E501 :rtype: list[str] """ return self._requests @requests.setter def requests(self, requests): - """Sets the requests of this V1alpha3DeviceClaimConfiguration. + """Sets the requests of this V1DeviceClaimConfiguration. Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. # noqa: E501 - :param requests: The requests of this V1alpha3DeviceClaimConfiguration. # noqa: E501 + :param requests: The requests of this V1DeviceClaimConfiguration. # noqa: E501 :type: list[str] """ @@ -135,14 +135,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3DeviceClaimConfiguration): + if not isinstance(other, V1DeviceClaimConfiguration): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3DeviceClaimConfiguration): + if not isinstance(other, V1DeviceClaimConfiguration): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_resource_slice.py b/kubernetes/client/models/v1_device_class.py similarity index 77% rename from kubernetes/client/models/v1alpha3_resource_slice.py rename to kubernetes/client/models/v1_device_class.py index a157521eb..f1c37fdff 100644 --- a/kubernetes/client/models/v1alpha3_resource_slice.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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3ResourceSlice(object): +class V1DeviceClass(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -36,7 +36,7 @@ class V1alpha3ResourceSlice(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'spec': 'V1alpha3ResourceSliceSpec' + 'spec': 'V1DeviceClassSpec' } attribute_map = { @@ -47,7 +47,7 @@ class V1alpha3ResourceSlice(object): } def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3ResourceSlice - a model defined in OpenAPI""" # noqa: E501 + """V1DeviceClass - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -68,22 +68,22 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_ @property def api_version(self): - """Gets the api_version of this V1alpha3ResourceSlice. # noqa: E501 + """Gets the api_version of this V1DeviceClass. # noqa: E501 APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha3ResourceSlice. # noqa: E501 + :return: The api_version of this V1DeviceClass. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """Sets the api_version of this V1alpha3ResourceSlice. + """Sets the api_version of this V1DeviceClass. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha3ResourceSlice. # noqa: E501 + :param api_version: The api_version of this V1DeviceClass. # noqa: E501 :type: str """ @@ -91,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """Gets the kind of this V1alpha3ResourceSlice. # noqa: E501 + """Gets the kind of this V1DeviceClass. # noqa: E501 Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha3ResourceSlice. # noqa: E501 + :return: The kind of this V1DeviceClass. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """Sets the kind of this V1alpha3ResourceSlice. + """Sets the kind of this V1DeviceClass. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha3ResourceSlice. # noqa: E501 + :param kind: The kind of this V1DeviceClass. # noqa: E501 :type: str """ @@ -114,20 +114,20 @@ def kind(self, kind): @property def metadata(self): - """Gets the metadata of this V1alpha3ResourceSlice. # noqa: E501 + """Gets the metadata of this V1DeviceClass. # noqa: E501 - :return: The metadata of this V1alpha3ResourceSlice. # noqa: E501 + :return: The metadata of this V1DeviceClass. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """Sets the metadata of this V1alpha3ResourceSlice. + """Sets the metadata of this V1DeviceClass. - :param metadata: The metadata of this V1alpha3ResourceSlice. # noqa: E501 + :param metadata: The metadata of this V1DeviceClass. # noqa: E501 :type: V1ObjectMeta """ @@ -135,21 +135,21 @@ def metadata(self, metadata): @property def spec(self): - """Gets the spec of this V1alpha3ResourceSlice. # noqa: E501 + """Gets the spec of this V1DeviceClass. # noqa: E501 - :return: The spec of this V1alpha3ResourceSlice. # noqa: E501 - :rtype: V1alpha3ResourceSliceSpec + :return: The spec of this V1DeviceClass. # noqa: E501 + :rtype: V1DeviceClassSpec """ return self._spec @spec.setter def spec(self, spec): - """Sets the spec of this V1alpha3ResourceSlice. + """Sets the spec of this V1DeviceClass. - :param spec: The spec of this V1alpha3ResourceSlice. # noqa: E501 - :type: V1alpha3ResourceSliceSpec + :param spec: The spec of this V1DeviceClass. # noqa: E501 + :type: V1DeviceClassSpec """ if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 @@ -190,14 +190,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3ResourceSlice): + if not isinstance(other, V1DeviceClass): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3ResourceSlice): + if not isinstance(other, V1DeviceClass): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_class_configuration.py b/kubernetes/client/models/v1_device_class_configuration.py similarity index 77% rename from kubernetes/client/models/v1alpha3_device_class_configuration.py rename to kubernetes/client/models/v1_device_class_configuration.py index 221e0a8ba..f2ca5b7cd 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceClassConfiguration(object): +class V1DeviceClassConfiguration(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,7 +33,7 @@ class V1alpha3DeviceClassConfiguration(object): and the value is json key in definition. """ openapi_types = { - 'opaque': 'V1alpha3OpaqueDeviceConfiguration' + 'opaque': 'V1OpaqueDeviceConfiguration' } attribute_map = { @@ -41,7 +41,7 @@ class V1alpha3DeviceClassConfiguration(object): } def __init__(self, opaque=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceClassConfiguration - a model defined in OpenAPI""" # noqa: E501 + """V1DeviceClassConfiguration - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -54,21 +54,21 @@ def __init__(self, opaque=None, local_vars_configuration=None): # noqa: E501 @property def opaque(self): - """Gets the opaque of this V1alpha3DeviceClassConfiguration. # noqa: E501 + """Gets the opaque of this V1DeviceClassConfiguration. # noqa: E501 - :return: The opaque of this V1alpha3DeviceClassConfiguration. # noqa: E501 - :rtype: V1alpha3OpaqueDeviceConfiguration + :return: The opaque of this V1DeviceClassConfiguration. # noqa: E501 + :rtype: V1OpaqueDeviceConfiguration """ return self._opaque @opaque.setter def opaque(self, opaque): - """Sets the opaque of this V1alpha3DeviceClassConfiguration. + """Sets the opaque of this V1DeviceClassConfiguration. - :param opaque: The opaque of this V1alpha3DeviceClassConfiguration. # noqa: E501 - :type: V1alpha3OpaqueDeviceConfiguration + :param opaque: The opaque of this V1DeviceClassConfiguration. # noqa: E501 + :type: V1OpaqueDeviceConfiguration """ self._opaque = opaque @@ -107,14 +107,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3DeviceClassConfiguration): + if not isinstance(other, V1DeviceClassConfiguration): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3DeviceClassConfiguration): + if not isinstance(other, V1DeviceClassConfiguration): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_class_list.py b/kubernetes/client/models/v1_device_class_list.py similarity index 78% rename from kubernetes/client/models/v1alpha3_device_class_list.py rename to kubernetes/client/models/v1_device_class_list.py index 6b0b98483..25e79a8f5 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceClassList(object): +class V1DeviceClassList(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,7 +34,7 @@ class V1alpha3DeviceClassList(object): """ openapi_types = { 'api_version': 'str', - 'items': 'list[V1alpha3DeviceClass]', + 'items': 'list[V1DeviceClass]', 'kind': 'str', 'metadata': 'V1ListMeta' } @@ -47,7 +47,7 @@ class V1alpha3DeviceClassList(object): } def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceClassList - a model defined in OpenAPI""" # noqa: E501 + """V1DeviceClassList - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -68,22 +68,22 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None, local @property def api_version(self): - """Gets the api_version of this V1alpha3DeviceClassList. # noqa: E501 + """Gets the api_version of this V1DeviceClassList. # noqa: E501 APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha3DeviceClassList. # noqa: E501 + :return: The api_version of this V1DeviceClassList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """Sets the api_version of this V1alpha3DeviceClassList. + """Sets the api_version of this V1DeviceClassList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha3DeviceClassList. # noqa: E501 + :param api_version: The api_version of this V1DeviceClassList. # noqa: E501 :type: str """ @@ -91,23 +91,23 @@ def api_version(self, api_version): @property def items(self): - """Gets the items of this V1alpha3DeviceClassList. # noqa: E501 + """Gets the items of this V1DeviceClassList. # noqa: E501 Items is the list of resource classes. # noqa: E501 - :return: The items of this V1alpha3DeviceClassList. # noqa: E501 - :rtype: list[V1alpha3DeviceClass] + :return: The items of this V1DeviceClassList. # noqa: E501 + :rtype: list[V1DeviceClass] """ return self._items @items.setter def items(self, items): - """Sets the items of this V1alpha3DeviceClassList. + """Sets the items of this V1DeviceClassList. Items is the list of resource classes. # noqa: E501 - :param items: The items of this V1alpha3DeviceClassList. # noqa: E501 - :type: list[V1alpha3DeviceClass] + :param items: The items of this V1DeviceClassList. # noqa: E501 + :type: list[V1DeviceClass] """ if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 @@ -116,22 +116,22 @@ def items(self, items): @property def kind(self): - """Gets the kind of this V1alpha3DeviceClassList. # noqa: E501 + """Gets the kind of this V1DeviceClassList. # noqa: E501 Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha3DeviceClassList. # noqa: E501 + :return: The kind of this V1DeviceClassList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """Sets the kind of this V1alpha3DeviceClassList. + """Sets the kind of this V1DeviceClassList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha3DeviceClassList. # noqa: E501 + :param kind: The kind of this V1DeviceClassList. # noqa: E501 :type: str """ @@ -139,20 +139,20 @@ def kind(self, kind): @property def metadata(self): - """Gets the metadata of this V1alpha3DeviceClassList. # noqa: E501 + """Gets the metadata of this V1DeviceClassList. # noqa: E501 - :return: The metadata of this V1alpha3DeviceClassList. # noqa: E501 + :return: The metadata of this V1DeviceClassList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """Sets the metadata of this V1alpha3DeviceClassList. + """Sets the metadata of this V1DeviceClassList. - :param metadata: The metadata of this V1alpha3DeviceClassList. # noqa: E501 + :param metadata: The metadata of this V1DeviceClassList. # noqa: E501 :type: V1ListMeta """ @@ -192,14 +192,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3DeviceClassList): + if not isinstance(other, V1DeviceClassList): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3DeviceClassList): + if not isinstance(other, V1DeviceClassList): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_class_spec.py b/kubernetes/client/models/v1_device_class_spec.py similarity index 54% rename from kubernetes/client/models/v1alpha3_device_class_spec.py rename to kubernetes/client/models/v1_device_class_spec.py index fb3709462..6a565b97a 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceClassSpec(object): +class V1DeviceClassSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,72 +33,100 @@ class V1alpha3DeviceClassSpec(object): and the value is json key in definition. """ openapi_types = { - 'config': 'list[V1alpha3DeviceClassConfiguration]', - 'selectors': 'list[V1alpha3DeviceSelector]' + 'config': 'list[V1DeviceClassConfiguration]', + 'extended_resource_name': 'str', + 'selectors': 'list[V1DeviceSelector]' } attribute_map = { 'config': 'config', + 'extended_resource_name': 'extendedResourceName', 'selectors': 'selectors' } - def __init__(self, config=None, selectors=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceClassSpec - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, config=None, extended_resource_name=None, selectors=None, local_vars_configuration=None): # noqa: E501 + """V1DeviceClassSpec - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._config = None + self._extended_resource_name = None self._selectors = None self.discriminator = None if config is not None: self.config = config + if extended_resource_name is not None: + self.extended_resource_name = extended_resource_name if selectors is not None: self.selectors = selectors @property def config(self): - """Gets the config of this V1alpha3DeviceClassSpec. # noqa: E501 + """Gets the config of this V1DeviceClassSpec. # noqa: E501 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. # noqa: E501 - :return: The config of this V1alpha3DeviceClassSpec. # noqa: E501 - :rtype: list[V1alpha3DeviceClassConfiguration] + :return: The config of this V1DeviceClassSpec. # noqa: E501 + :rtype: list[V1DeviceClassConfiguration] """ return self._config @config.setter def config(self, config): - """Sets the config of this V1alpha3DeviceClassSpec. + """Sets the config of this V1DeviceClassSpec. 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. # noqa: E501 - :param config: The config of this V1alpha3DeviceClassSpec. # noqa: E501 - :type: list[V1alpha3DeviceClassConfiguration] + :param config: The config of this V1DeviceClassSpec. # noqa: E501 + :type: list[V1DeviceClassConfiguration] """ self._config = config + @property + def extended_resource_name(self): + """Gets the extended_resource_name of this V1DeviceClassSpec. # noqa: E501 + + ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. # noqa: E501 + + :return: The extended_resource_name of this V1DeviceClassSpec. # noqa: E501 + :rtype: str + """ + return self._extended_resource_name + + @extended_resource_name.setter + def extended_resource_name(self, extended_resource_name): + """Sets the extended_resource_name of this V1DeviceClassSpec. + + ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. # noqa: E501 + + :param extended_resource_name: The extended_resource_name of this V1DeviceClassSpec. # noqa: E501 + :type: str + """ + + self._extended_resource_name = extended_resource_name + @property def selectors(self): - """Gets the selectors of this V1alpha3DeviceClassSpec. # noqa: E501 + """Gets the selectors of this V1DeviceClassSpec. # noqa: E501 Each selector must be satisfied by a device which is claimed via this class. # noqa: E501 - :return: The selectors of this V1alpha3DeviceClassSpec. # noqa: E501 - :rtype: list[V1alpha3DeviceSelector] + :return: The selectors of this V1DeviceClassSpec. # noqa: E501 + :rtype: list[V1DeviceSelector] """ return self._selectors @selectors.setter def selectors(self, selectors): - """Sets the selectors of this V1alpha3DeviceClassSpec. + """Sets the selectors of this V1DeviceClassSpec. Each selector must be satisfied by a device which is claimed via this class. # noqa: E501 - :param selectors: The selectors of this V1alpha3DeviceClassSpec. # noqa: E501 - :type: list[V1alpha3DeviceSelector] + :param selectors: The selectors of this V1DeviceClassSpec. # noqa: E501 + :type: list[V1DeviceSelector] """ self._selectors = selectors @@ -137,14 +165,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3DeviceClassSpec): + if not isinstance(other, V1DeviceClassSpec): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3DeviceClassSpec): + if not isinstance(other, V1DeviceClassSpec): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_constraint.py b/kubernetes/client/models/v1_device_constraint.py similarity index 65% rename from kubernetes/client/models/v1alpha3_device_constraint.py rename to kubernetes/client/models/v1_device_constraint.py index 46fd71a00..6f84dc3fc 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceConstraint(object): +class V1DeviceConstraint(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,48 +33,76 @@ class V1alpha3DeviceConstraint(object): and the value is json key in definition. """ openapi_types = { + 'distinct_attribute': 'str', 'match_attribute': 'str', 'requests': 'list[str]' } attribute_map = { + 'distinct_attribute': 'distinctAttribute', 'match_attribute': 'matchAttribute', 'requests': 'requests' } - def __init__(self, match_attribute=None, requests=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceConstraint - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, distinct_attribute=None, match_attribute=None, requests=None, local_vars_configuration=None): # noqa: E501 + """V1DeviceConstraint - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._distinct_attribute = None self._match_attribute = None self._requests = None self.discriminator = None + if distinct_attribute is not None: + self.distinct_attribute = distinct_attribute if match_attribute is not None: self.match_attribute = match_attribute if requests is not None: self.requests = requests + @property + def distinct_attribute(self): + """Gets the distinct_attribute of this V1DeviceConstraint. # noqa: E501 + + DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. # noqa: E501 + + :return: The distinct_attribute of this V1DeviceConstraint. # noqa: E501 + :rtype: str + """ + return self._distinct_attribute + + @distinct_attribute.setter + def distinct_attribute(self, distinct_attribute): + """Sets the distinct_attribute of this V1DeviceConstraint. + + DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. # noqa: E501 + + :param distinct_attribute: The distinct_attribute of this V1DeviceConstraint. # noqa: E501 + :type: str + """ + + self._distinct_attribute = distinct_attribute + @property def match_attribute(self): - """Gets the match_attribute of this V1alpha3DeviceConstraint. # noqa: E501 + """Gets the match_attribute of this V1DeviceConstraint. # noqa: E501 MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. # noqa: E501 - :return: The match_attribute of this V1alpha3DeviceConstraint. # noqa: E501 + :return: The match_attribute of this V1DeviceConstraint. # noqa: E501 :rtype: str """ return self._match_attribute @match_attribute.setter def match_attribute(self, match_attribute): - """Sets the match_attribute of this V1alpha3DeviceConstraint. + """Sets the match_attribute of this V1DeviceConstraint. MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. # noqa: E501 - :param match_attribute: The match_attribute of this V1alpha3DeviceConstraint. # noqa: E501 + :param match_attribute: The match_attribute of this V1DeviceConstraint. # noqa: E501 :type: str """ @@ -82,22 +110,22 @@ def match_attribute(self, match_attribute): @property def requests(self): - """Gets the requests of this V1alpha3DeviceConstraint. # noqa: E501 + """Gets the requests of this V1DeviceConstraint. # noqa: E501 Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests. # noqa: E501 - :return: The requests of this V1alpha3DeviceConstraint. # noqa: E501 + :return: The requests of this V1DeviceConstraint. # noqa: E501 :rtype: list[str] """ return self._requests @requests.setter def requests(self, requests): - """Sets the requests of this V1alpha3DeviceConstraint. + """Sets the requests of this V1DeviceConstraint. Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests. # noqa: E501 - :param requests: The requests of this V1alpha3DeviceConstraint. # noqa: E501 + :param requests: The requests of this V1DeviceConstraint. # noqa: E501 :type: list[str] """ @@ -137,14 +165,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3DeviceConstraint): + if not isinstance(other, V1DeviceConstraint): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3DeviceConstraint): + if not isinstance(other, V1DeviceConstraint): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_counter_consumption.py b/kubernetes/client/models/v1_device_counter_consumption.py similarity index 66% rename from kubernetes/client/models/v1alpha3_device_counter_consumption.py rename to kubernetes/client/models/v1_device_counter_consumption.py index 4ee5c2b80..2d9ae2027 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceCounterConsumption(object): +class V1DeviceCounterConsumption(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,7 +34,7 @@ class V1alpha3DeviceCounterConsumption(object): """ openapi_types = { 'counter_set': 'str', - 'counters': 'dict(str, V1alpha3Counter)' + 'counters': 'dict(str, V1Counter)' } attribute_map = { @@ -43,7 +43,7 @@ class V1alpha3DeviceCounterConsumption(object): } def __init__(self, counter_set=None, counters=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceCounterConsumption - a model defined in OpenAPI""" # noqa: E501 + """V1DeviceCounterConsumption - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -57,22 +57,22 @@ def __init__(self, counter_set=None, counters=None, local_vars_configuration=Non @property def counter_set(self): - """Gets the counter_set of this V1alpha3DeviceCounterConsumption. # noqa: E501 + """Gets the counter_set of this V1DeviceCounterConsumption. # noqa: E501 - CounterSet defines the set from which the counters defined will be consumed. # noqa: E501 + CounterSet is the name of the set from which the counters defined will be consumed. # noqa: E501 - :return: The counter_set of this V1alpha3DeviceCounterConsumption. # noqa: E501 + :return: The counter_set of this V1DeviceCounterConsumption. # noqa: E501 :rtype: str """ return self._counter_set @counter_set.setter def counter_set(self, counter_set): - """Sets the counter_set of this V1alpha3DeviceCounterConsumption. + """Sets the counter_set of this V1DeviceCounterConsumption. - CounterSet defines the set from which the counters defined will be consumed. # noqa: E501 + CounterSet is the name of the set from which the counters defined will be consumed. # noqa: E501 - :param counter_set: The counter_set of this V1alpha3DeviceCounterConsumption. # noqa: E501 + :param counter_set: The counter_set of this V1DeviceCounterConsumption. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and counter_set is None: # noqa: E501 @@ -82,23 +82,23 @@ def counter_set(self, counter_set): @property def counters(self): - """Gets the counters of this V1alpha3DeviceCounterConsumption. # noqa: E501 + """Gets the counters of this V1DeviceCounterConsumption. # noqa: E501 - Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). # noqa: E501 + Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). # noqa: E501 - :return: The counters of this V1alpha3DeviceCounterConsumption. # noqa: E501 - :rtype: dict(str, V1alpha3Counter) + :return: The counters of this V1DeviceCounterConsumption. # noqa: E501 + :rtype: dict(str, V1Counter) """ return self._counters @counters.setter def counters(self, counters): - """Sets the counters of this V1alpha3DeviceCounterConsumption. + """Sets the counters of this V1DeviceCounterConsumption. - Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). # noqa: E501 + Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). # noqa: E501 - :param counters: The counters of this V1alpha3DeviceCounterConsumption. # noqa: E501 - :type: dict(str, V1alpha3Counter) + :param counters: The counters of this V1DeviceCounterConsumption. # noqa: E501 + :type: dict(str, V1Counter) """ if self.local_vars_configuration.client_side_validation and counters is None: # noqa: E501 raise ValueError("Invalid value for `counters`, must not be `None`") # noqa: E501 @@ -139,14 +139,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3DeviceCounterConsumption): + if not isinstance(other, V1DeviceCounterConsumption): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3DeviceCounterConsumption): + if not isinstance(other, V1DeviceCounterConsumption): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_device_request.py b/kubernetes/client/models/v1_device_request.py new file mode 100644 index 000000000..be01eec4d --- /dev/null +++ b/kubernetes/client/models/v1_device_request.py @@ -0,0 +1,177 @@ +# 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.34 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1DeviceRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'exactly': 'V1ExactDeviceRequest', + 'first_available': 'list[V1DeviceSubRequest]', + 'name': 'str' + } + + attribute_map = { + 'exactly': 'exactly', + 'first_available': 'firstAvailable', + 'name': 'name' + } + + def __init__(self, exactly=None, first_available=None, name=None, local_vars_configuration=None): # noqa: E501 + """V1DeviceRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._exactly = None + self._first_available = None + self._name = None + self.discriminator = None + + if exactly is not None: + self.exactly = exactly + if first_available is not None: + self.first_available = first_available + self.name = name + + @property + def exactly(self): + """Gets the exactly of this V1DeviceRequest. # noqa: E501 + + + :return: The exactly of this V1DeviceRequest. # noqa: E501 + :rtype: V1ExactDeviceRequest + """ + return self._exactly + + @exactly.setter + def exactly(self, exactly): + """Sets the exactly of this V1DeviceRequest. + + + :param exactly: The exactly of this V1DeviceRequest. # noqa: E501 + :type: V1ExactDeviceRequest + """ + + self._exactly = exactly + + @property + def first_available(self): + """Gets the first_available of this V1DeviceRequest. # noqa: E501 + + FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. # noqa: E501 + + :return: The first_available of this V1DeviceRequest. # noqa: E501 + :rtype: list[V1DeviceSubRequest] + """ + return self._first_available + + @first_available.setter + def first_available(self, first_available): + """Sets the first_available of this V1DeviceRequest. + + FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. # noqa: E501 + + :param first_available: The first_available of this V1DeviceRequest. # noqa: E501 + :type: list[V1DeviceSubRequest] + """ + + self._first_available = first_available + + @property + def name(self): + """Gets the name of this V1DeviceRequest. # noqa: E501 + + Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. Must be a DNS label. # noqa: E501 + + :return: The name of this V1DeviceRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1DeviceRequest. + + Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. Must be a DNS label. # noqa: E501 + + :param name: The name of this V1DeviceRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1DeviceRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1DeviceRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_request_allocation_result.py b/kubernetes/client/models/v1_device_request_allocation_result.py similarity index 50% rename from kubernetes/client/models/v1alpha3_device_request_allocation_result.py rename to kubernetes/client/models/v1_device_request_allocation_result.py index 582bbbd9e..7c3f111fb 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceRequestAllocationResult(object): +class V1DeviceRequestAllocationResult(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,86 +34,175 @@ class V1alpha3DeviceRequestAllocationResult(object): """ openapi_types = { 'admin_access': 'bool', + 'binding_conditions': 'list[str]', + 'binding_failure_conditions': 'list[str]', + 'consumed_capacity': 'dict(str, str)', 'device': 'str', 'driver': 'str', 'pool': 'str', 'request': 'str', - 'tolerations': 'list[V1alpha3DeviceToleration]' + 'share_id': 'str', + 'tolerations': 'list[V1DeviceToleration]' } attribute_map = { 'admin_access': 'adminAccess', + 'binding_conditions': 'bindingConditions', + 'binding_failure_conditions': 'bindingFailureConditions', + 'consumed_capacity': 'consumedCapacity', 'device': 'device', 'driver': 'driver', 'pool': 'pool', 'request': 'request', + 'share_id': 'shareID', 'tolerations': 'tolerations' } - def __init__(self, admin_access=None, device=None, driver=None, pool=None, request=None, tolerations=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceRequestAllocationResult - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, admin_access=None, binding_conditions=None, binding_failure_conditions=None, consumed_capacity=None, device=None, driver=None, pool=None, request=None, share_id=None, tolerations=None, local_vars_configuration=None): # noqa: E501 + """V1DeviceRequestAllocationResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._admin_access = None + self._binding_conditions = None + self._binding_failure_conditions = None + self._consumed_capacity = None self._device = None self._driver = None self._pool = None self._request = None + self._share_id = None self._tolerations = None self.discriminator = None if admin_access is not None: self.admin_access = admin_access + if binding_conditions is not None: + self.binding_conditions = binding_conditions + if binding_failure_conditions is not None: + self.binding_failure_conditions = binding_failure_conditions + if consumed_capacity is not None: + self.consumed_capacity = consumed_capacity self.device = device self.driver = driver self.pool = pool self.request = request + if share_id is not None: + self.share_id = share_id if tolerations is not None: self.tolerations = tolerations @property def admin_access(self): - """Gets the admin_access of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + """Gets the admin_access of this V1DeviceRequestAllocationResult. # noqa: E501 AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. # noqa: E501 - :return: The admin_access of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + :return: The admin_access of this V1DeviceRequestAllocationResult. # noqa: E501 :rtype: bool """ return self._admin_access @admin_access.setter def admin_access(self, admin_access): - """Sets the admin_access of this V1alpha3DeviceRequestAllocationResult. + """Sets the admin_access of this V1DeviceRequestAllocationResult. AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. # noqa: E501 - :param admin_access: The admin_access of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + :param admin_access: The admin_access of this V1DeviceRequestAllocationResult. # noqa: E501 :type: bool """ self._admin_access = admin_access + @property + def binding_conditions(self): + """Gets the binding_conditions of this V1DeviceRequestAllocationResult. # noqa: E501 + + BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501 + + :return: The binding_conditions of this V1DeviceRequestAllocationResult. # noqa: E501 + :rtype: list[str] + """ + return self._binding_conditions + + @binding_conditions.setter + def binding_conditions(self, binding_conditions): + """Sets the binding_conditions of this V1DeviceRequestAllocationResult. + + BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501 + + :param binding_conditions: The binding_conditions of this V1DeviceRequestAllocationResult. # noqa: E501 + :type: list[str] + """ + + self._binding_conditions = binding_conditions + + @property + def binding_failure_conditions(self): + """Gets the binding_failure_conditions of this V1DeviceRequestAllocationResult. # noqa: E501 + + BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501 + + :return: The binding_failure_conditions of this V1DeviceRequestAllocationResult. # noqa: E501 + :rtype: list[str] + """ + return self._binding_failure_conditions + + @binding_failure_conditions.setter + def binding_failure_conditions(self, binding_failure_conditions): + """Sets the binding_failure_conditions of this V1DeviceRequestAllocationResult. + + BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501 + + :param binding_failure_conditions: The binding_failure_conditions of this V1DeviceRequestAllocationResult. # noqa: E501 + :type: list[str] + """ + + self._binding_failure_conditions = binding_failure_conditions + + @property + def consumed_capacity(self): + """Gets the consumed_capacity of this V1DeviceRequestAllocationResult. # noqa: E501 + + ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. # noqa: E501 + + :return: The consumed_capacity of this V1DeviceRequestAllocationResult. # noqa: E501 + :rtype: dict(str, str) + """ + return self._consumed_capacity + + @consumed_capacity.setter + def consumed_capacity(self, consumed_capacity): + """Sets the consumed_capacity of this V1DeviceRequestAllocationResult. + + ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. # noqa: E501 + + :param consumed_capacity: The consumed_capacity of this V1DeviceRequestAllocationResult. # noqa: E501 + :type: dict(str, str) + """ + + self._consumed_capacity = consumed_capacity + @property def device(self): - """Gets the device of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + """Gets the device of this V1DeviceRequestAllocationResult. # noqa: E501 Device references one device instance via its name in the driver's resource pool. It must be a DNS label. # noqa: E501 - :return: The device of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + :return: The device of this V1DeviceRequestAllocationResult. # noqa: E501 :rtype: str """ return self._device @device.setter def device(self, device): - """Sets the device of this V1alpha3DeviceRequestAllocationResult. + """Sets the device of this V1DeviceRequestAllocationResult. Device references one device instance via its name in the driver's resource pool. It must be a DNS label. # noqa: E501 - :param device: The device of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + :param device: The device of this V1DeviceRequestAllocationResult. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and device is None: # noqa: E501 @@ -123,22 +212,22 @@ def device(self, device): @property def driver(self): - """Gets the driver of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + """Gets the driver of this V1DeviceRequestAllocationResult. # noqa: E501 Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. # noqa: E501 - :return: The driver of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + :return: The driver of this V1DeviceRequestAllocationResult. # noqa: E501 :rtype: str """ return self._driver @driver.setter def driver(self, driver): - """Sets the driver of this V1alpha3DeviceRequestAllocationResult. + """Sets the driver of this V1DeviceRequestAllocationResult. Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. # noqa: E501 - :param driver: The driver of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + :param driver: The driver of this V1DeviceRequestAllocationResult. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501 @@ -148,22 +237,22 @@ def driver(self, driver): @property def pool(self): - """Gets the pool of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + """Gets the pool of this V1DeviceRequestAllocationResult. # noqa: E501 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. # noqa: E501 - :return: The pool of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + :return: The pool of this V1DeviceRequestAllocationResult. # noqa: E501 :rtype: str """ return self._pool @pool.setter def pool(self, pool): - """Sets the pool of this V1alpha3DeviceRequestAllocationResult. + """Sets the pool of this V1DeviceRequestAllocationResult. 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. # noqa: E501 - :param pool: The pool of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + :param pool: The pool of this V1DeviceRequestAllocationResult. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and pool is None: # noqa: E501 @@ -173,22 +262,22 @@ def pool(self, pool): @property def request(self): - """Gets the request of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + """Gets the request of this V1DeviceRequestAllocationResult. # noqa: E501 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. # noqa: E501 - :return: The request of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + :return: The request of this V1DeviceRequestAllocationResult. # noqa: E501 :rtype: str """ return self._request @request.setter def request(self, request): - """Sets the request of this V1alpha3DeviceRequestAllocationResult. + """Sets the request of this V1DeviceRequestAllocationResult. 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. # noqa: E501 - :param request: The request of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + :param request: The request of this V1DeviceRequestAllocationResult. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and request is None: # noqa: E501 @@ -196,25 +285,48 @@ def request(self, request): self._request = request + @property + def share_id(self): + """Gets the share_id of this V1DeviceRequestAllocationResult. # noqa: E501 + + 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. # noqa: E501 + + :return: The share_id of this V1DeviceRequestAllocationResult. # noqa: E501 + :rtype: str + """ + return self._share_id + + @share_id.setter + def share_id(self, share_id): + """Sets the share_id of this V1DeviceRequestAllocationResult. + + 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. # noqa: E501 + + :param share_id: The share_id of this V1DeviceRequestAllocationResult. # noqa: E501 + :type: str + """ + + self._share_id = share_id + @property def tolerations(self): - """Gets the tolerations of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 + """Gets the tolerations of this V1DeviceRequestAllocationResult. # noqa: E501 A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501 - :return: The tolerations of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 - :rtype: list[V1alpha3DeviceToleration] + :return: The tolerations of this V1DeviceRequestAllocationResult. # noqa: E501 + :rtype: list[V1DeviceToleration] """ return self._tolerations @tolerations.setter def tolerations(self, tolerations): - """Sets the tolerations of this V1alpha3DeviceRequestAllocationResult. + """Sets the tolerations of this V1DeviceRequestAllocationResult. A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501 - :param tolerations: The tolerations of this V1alpha3DeviceRequestAllocationResult. # noqa: E501 - :type: list[V1alpha3DeviceToleration] + :param tolerations: The tolerations of this V1DeviceRequestAllocationResult. # noqa: E501 + :type: list[V1DeviceToleration] """ self._tolerations = tolerations @@ -253,14 +365,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3DeviceRequestAllocationResult): + if not isinstance(other, V1DeviceRequestAllocationResult): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3DeviceRequestAllocationResult): + if not isinstance(other, V1DeviceRequestAllocationResult): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_type_checking.py b/kubernetes/client/models/v1_device_selector.py similarity index 62% rename from kubernetes/client/models/v1beta1_type_checking.py rename to kubernetes/client/models/v1_device_selector.py index 55b71e730..f404483b3 100644 --- a/kubernetes/client/models/v1beta1_type_checking.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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1beta1TypeChecking(object): +class V1DeviceSelector(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,47 +33,45 @@ class V1beta1TypeChecking(object): and the value is json key in definition. """ openapi_types = { - 'expression_warnings': 'list[V1beta1ExpressionWarning]' + 'cel': 'V1CELDeviceSelector' } attribute_map = { - 'expression_warnings': 'expressionWarnings' + 'cel': 'cel' } - def __init__(self, expression_warnings=None, local_vars_configuration=None): # noqa: E501 - """V1beta1TypeChecking - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, cel=None, local_vars_configuration=None): # noqa: E501 + """V1DeviceSelector - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration - self._expression_warnings = None + self._cel = None self.discriminator = None - if expression_warnings is not None: - self.expression_warnings = expression_warnings + if cel is not None: + self.cel = cel @property - def expression_warnings(self): - """Gets the expression_warnings of this V1beta1TypeChecking. # noqa: E501 + def cel(self): + """Gets the cel of this V1DeviceSelector. # noqa: E501 - The type checking warnings for each expression. # noqa: E501 - :return: The expression_warnings of this V1beta1TypeChecking. # noqa: E501 - :rtype: list[V1beta1ExpressionWarning] + :return: The cel of this V1DeviceSelector. # noqa: E501 + :rtype: V1CELDeviceSelector """ - return self._expression_warnings + return self._cel - @expression_warnings.setter - def expression_warnings(self, expression_warnings): - """Sets the expression_warnings of this V1beta1TypeChecking. + @cel.setter + def cel(self, cel): + """Sets the cel of this V1DeviceSelector. - The type checking warnings for each expression. # noqa: E501 - :param expression_warnings: The expression_warnings of this V1beta1TypeChecking. # noqa: E501 - :type: list[V1beta1ExpressionWarning] + :param cel: The cel of this V1DeviceSelector. # noqa: E501 + :type: V1CELDeviceSelector """ - self._expression_warnings = expression_warnings + self._cel = cel def to_dict(self): """Returns the model properties as a dict""" @@ -109,14 +107,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1beta1TypeChecking): + if not isinstance(other, V1DeviceSelector): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1TypeChecking): + if not isinstance(other, V1DeviceSelector): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_sub_request.py b/kubernetes/client/models/v1_device_sub_request.py similarity index 66% rename from kubernetes/client/models/v1alpha3_device_sub_request.py rename to kubernetes/client/models/v1_device_sub_request.py index 9c8c1ced9..2d22f81ba 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceSubRequest(object): +class V1DeviceSubRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,15 +34,17 @@ class V1alpha3DeviceSubRequest(object): """ openapi_types = { 'allocation_mode': 'str', + 'capacity': 'V1CapacityRequirements', 'count': 'int', 'device_class_name': 'str', 'name': 'str', - 'selectors': 'list[V1alpha3DeviceSelector]', - 'tolerations': 'list[V1alpha3DeviceToleration]' + 'selectors': 'list[V1DeviceSelector]', + 'tolerations': 'list[V1DeviceToleration]' } attribute_map = { 'allocation_mode': 'allocationMode', + 'capacity': 'capacity', 'count': 'count', 'device_class_name': 'deviceClassName', 'name': 'name', @@ -50,13 +52,14 @@ class V1alpha3DeviceSubRequest(object): 'tolerations': 'tolerations' } - def __init__(self, allocation_mode=None, count=None, device_class_name=None, name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceSubRequest - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, allocation_mode=None, capacity=None, count=None, device_class_name=None, name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501 + """V1DeviceSubRequest - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._allocation_mode = None + self._capacity = None self._count = None self._device_class_name = None self._name = None @@ -66,6 +69,8 @@ def __init__(self, allocation_mode=None, count=None, device_class_name=None, nam if allocation_mode is not None: self.allocation_mode = allocation_mode + if capacity is not None: + self.capacity = capacity if count is not None: self.count = count self.device_class_name = device_class_name @@ -77,45 +82,66 @@ def __init__(self, allocation_mode=None, count=None, device_class_name=None, nam @property def allocation_mode(self): - """Gets the allocation_mode of this V1alpha3DeviceSubRequest. # noqa: E501 + """Gets the allocation_mode of this V1DeviceSubRequest. # noqa: E501 - 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. 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. # noqa: E501 + 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. # noqa: E501 - :return: The allocation_mode of this V1alpha3DeviceSubRequest. # noqa: E501 + :return: The allocation_mode of this V1DeviceSubRequest. # noqa: E501 :rtype: str """ return self._allocation_mode @allocation_mode.setter def allocation_mode(self, allocation_mode): - """Sets the allocation_mode of this V1alpha3DeviceSubRequest. + """Sets the allocation_mode of this V1DeviceSubRequest. - 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. 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. # noqa: E501 + 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. # noqa: E501 - :param allocation_mode: The allocation_mode of this V1alpha3DeviceSubRequest. # noqa: E501 + :param allocation_mode: The allocation_mode of this V1DeviceSubRequest. # noqa: E501 :type: str """ self._allocation_mode = allocation_mode + @property + def capacity(self): + """Gets the capacity of this V1DeviceSubRequest. # noqa: E501 + + + :return: The capacity of this V1DeviceSubRequest. # noqa: E501 + :rtype: V1CapacityRequirements + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """Sets the capacity of this V1DeviceSubRequest. + + + :param capacity: The capacity of this V1DeviceSubRequest. # noqa: E501 + :type: V1CapacityRequirements + """ + + self._capacity = capacity + @property def count(self): - """Gets the count of this V1alpha3DeviceSubRequest. # noqa: E501 + """Gets the count of this V1DeviceSubRequest. # noqa: E501 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. # noqa: E501 - :return: The count of this V1alpha3DeviceSubRequest. # noqa: E501 + :return: The count of this V1DeviceSubRequest. # noqa: E501 :rtype: int """ return self._count @count.setter def count(self, count): - """Sets the count of this V1alpha3DeviceSubRequest. + """Sets the count of this V1DeviceSubRequest. 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. # noqa: E501 - :param count: The count of this V1alpha3DeviceSubRequest. # noqa: E501 + :param count: The count of this V1DeviceSubRequest. # noqa: E501 :type: int """ @@ -123,22 +149,22 @@ def count(self, count): @property def device_class_name(self): - """Gets the device_class_name of this V1alpha3DeviceSubRequest. # noqa: E501 + """Gets the device_class_name of this V1DeviceSubRequest. # noqa: E501 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. # noqa: E501 - :return: The device_class_name of this V1alpha3DeviceSubRequest. # noqa: E501 + :return: The device_class_name of this V1DeviceSubRequest. # noqa: E501 :rtype: str """ return self._device_class_name @device_class_name.setter def device_class_name(self, device_class_name): - """Sets the device_class_name of this V1alpha3DeviceSubRequest. + """Sets the device_class_name of this V1DeviceSubRequest. 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. # noqa: E501 - :param device_class_name: The device_class_name of this V1alpha3DeviceSubRequest. # noqa: E501 + :param device_class_name: The device_class_name of this V1DeviceSubRequest. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and device_class_name is None: # noqa: E501 @@ -148,22 +174,22 @@ def device_class_name(self, device_class_name): @property def name(self): - """Gets the name of this V1alpha3DeviceSubRequest. # noqa: E501 + """Gets the name of this V1DeviceSubRequest. # noqa: E501 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. # noqa: E501 - :return: The name of this V1alpha3DeviceSubRequest. # noqa: E501 + :return: The name of this V1DeviceSubRequest. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this V1alpha3DeviceSubRequest. + """Sets the name of this V1DeviceSubRequest. 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. # noqa: E501 - :param name: The name of this V1alpha3DeviceSubRequest. # noqa: E501 + :param name: The name of this V1DeviceSubRequest. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 @@ -173,46 +199,46 @@ def name(self, name): @property def selectors(self): - """Gets the selectors of this V1alpha3DeviceSubRequest. # noqa: E501 + """Gets the selectors of this V1DeviceSubRequest. # noqa: E501 - 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. # noqa: E501 + 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. # noqa: E501 - :return: The selectors of this V1alpha3DeviceSubRequest. # noqa: E501 - :rtype: list[V1alpha3DeviceSelector] + :return: The selectors of this V1DeviceSubRequest. # noqa: E501 + :rtype: list[V1DeviceSelector] """ return self._selectors @selectors.setter def selectors(self, selectors): - """Sets the selectors of this V1alpha3DeviceSubRequest. + """Sets the selectors of this V1DeviceSubRequest. - 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. # noqa: E501 + 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. # noqa: E501 - :param selectors: The selectors of this V1alpha3DeviceSubRequest. # noqa: E501 - :type: list[V1alpha3DeviceSelector] + :param selectors: The selectors of this V1DeviceSubRequest. # noqa: E501 + :type: list[V1DeviceSelector] """ self._selectors = selectors @property def tolerations(self): - """Gets the tolerations of this V1alpha3DeviceSubRequest. # noqa: E501 + """Gets the tolerations of this V1DeviceSubRequest. # noqa: E501 If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501 - :return: The tolerations of this V1alpha3DeviceSubRequest. # noqa: E501 - :rtype: list[V1alpha3DeviceToleration] + :return: The tolerations of this V1DeviceSubRequest. # noqa: E501 + :rtype: list[V1DeviceToleration] """ return self._tolerations @tolerations.setter def tolerations(self, tolerations): - """Sets the tolerations of this V1alpha3DeviceSubRequest. + """Sets the tolerations of this V1DeviceSubRequest. If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501 - :param tolerations: The tolerations of this V1alpha3DeviceSubRequest. # noqa: E501 - :type: list[V1alpha3DeviceToleration] + :param tolerations: The tolerations of this V1DeviceSubRequest. # noqa: E501 + :type: list[V1DeviceToleration] """ self._tolerations = tolerations @@ -251,14 +277,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1alpha3DeviceSubRequest): + if not isinstance(other, V1DeviceSubRequest): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha3DeviceSubRequest): + if not isinstance(other, V1DeviceSubRequest): return True return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_device_taint.py b/kubernetes/client/models/v1_device_taint.py new file mode 100644 index 000000000..969f1f8f4 --- /dev/null +++ b/kubernetes/client/models/v1_device_taint.py @@ -0,0 +1,208 @@ +# 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.34 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1DeviceTaint(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'effect': 'str', + 'key': 'str', + 'time_added': 'datetime', + 'value': 'str' + } + + attribute_map = { + 'effect': 'effect', + 'key': 'key', + 'time_added': 'timeAdded', + 'value': 'value' + } + + def __init__(self, effect=None, key=None, time_added=None, value=None, local_vars_configuration=None): # noqa: E501 + """V1DeviceTaint - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._effect = None + self._key = None + self._time_added = None + self._value = None + self.discriminator = None + + self.effect = effect + self.key = key + if time_added is not None: + self.time_added = time_added + if value is not None: + self.value = value + + @property + def effect(self): + """Gets the effect of this V1DeviceTaint. # noqa: E501 + + The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. # noqa: E501 + + :return: The effect of this V1DeviceTaint. # noqa: E501 + :rtype: str + """ + return self._effect + + @effect.setter + def effect(self, effect): + """Sets the effect of this V1DeviceTaint. + + The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. # noqa: E501 + + :param effect: The effect of this V1DeviceTaint. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and effect is None: # noqa: E501 + raise ValueError("Invalid value for `effect`, must not be `None`") # noqa: E501 + + self._effect = effect + + @property + def key(self): + """Gets the key of this V1DeviceTaint. # noqa: E501 + + The taint key to be applied to a device. Must be a label name. # noqa: E501 + + :return: The key of this V1DeviceTaint. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this V1DeviceTaint. + + The taint key to be applied to a device. Must be a label name. # noqa: E501 + + :param key: The key of this V1DeviceTaint. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501 + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 + + self._key = key + + @property + def time_added(self): + """Gets the time_added of this V1DeviceTaint. # noqa: E501 + + TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. # noqa: E501 + + :return: The time_added of this V1DeviceTaint. # noqa: E501 + :rtype: datetime + """ + return self._time_added + + @time_added.setter + def time_added(self, time_added): + """Sets the time_added of this V1DeviceTaint. + + TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. # noqa: E501 + + :param time_added: The time_added of this V1DeviceTaint. # noqa: E501 + :type: datetime + """ + + self._time_added = time_added + + @property + def value(self): + """Gets the value of this V1DeviceTaint. # noqa: E501 + + The taint value corresponding to the taint key. Must be a label value. # noqa: E501 + + :return: The value of this V1DeviceTaint. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this V1DeviceTaint. + + The taint value corresponding to the taint key. Must be a label value. # noqa: E501 + + :param value: The value of this V1DeviceTaint. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1DeviceTaint): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1DeviceTaint): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha3_device_toleration.py b/kubernetes/client/models/v1_device_toleration.py similarity index 81% rename from kubernetes/client/models/v1alpha3_device_toleration.py rename to kubernetes/client/models/v1_device_toleration.py index 9d8803f8c..468d168e2 100644 --- a/kubernetes/client/models/v1alpha3_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) # noqa: E501 - The version of the OpenAPI document: release-1.33 + The version of the OpenAPI document: release-1.34 Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ from kubernetes.client.configuration import Configuration -class V1alpha3DeviceToleration(object): +class V1DeviceToleration(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -49,7 +49,7 @@ class V1alpha3DeviceToleration(object): } def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None, value=None, local_vars_configuration=None): # noqa: E501 - """V1alpha3DeviceToleration - a model defined in OpenAPI""" # noqa: E501 + """V1DeviceToleration - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -74,22 +74,22 @@ def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None @property def effect(self): - """Gets the effect of this V1alpha3DeviceToleration. # noqa: E501 + """Gets the effect of this V1DeviceToleration. # noqa: E501 Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. # noqa: E501 - :return: The effect of this V1alpha3DeviceToleration. # noqa: E501 + :return: The effect of this V1DeviceToleration. # noqa: E501 :rtype: str """ return self._effect @effect.setter def effect(self, effect): - """Sets the effect of this V1alpha3DeviceToleration. + """Sets the effect of this V1DeviceToleration. Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. # noqa: E501 - :param effect: The effect of this V1alpha3DeviceToleration. # noqa: E501 + :param effect: The effect of this V1DeviceToleration. # noqa: E501 :type: str """ @@ -97,22 +97,22 @@ def effect(self, effect): @property def key(self): - """Gets the key of this V1alpha3DeviceToleration. # noqa: E501 + """Gets the key of this V1DeviceToleration. # noqa: E501 Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name. # noqa: E501 - :return: The key of this V1alpha3DeviceToleration. # noqa: E501 + :return: The key of this V1DeviceToleration. # noqa: E501 :rtype: str """ return self._key @key.setter def key(self, key): - """Sets the key of this V1alpha3DeviceToleration. + """Sets the key of this V1DeviceToleration. Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name. # noqa: E501 - :param key: The key of this V1alpha3DeviceToleration. # noqa: E501 + :param key: The key of this V1DeviceToleration. # noqa: E501 :type: str """ @@ -120,22 +120,22 @@ def key(self, key): @property def operator(self): - """Gets the operator of this V1alpha3DeviceToleration. # noqa: E501 + """Gets the operator of this V1DeviceToleration. # noqa: E501 Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category. # noqa: E501 - :return: The operator of this V1alpha3DeviceToleration. # noqa: E501 + :return: The operator of this V1DeviceToleration. # noqa: E501 :rtype: str """ return self._operator @operator.setter def operator(self, operator): - """Sets the operator of this V1alpha3DeviceToleration. + """Sets the operator of this V1DeviceToleration. Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category. # noqa: E501 - :param operator: The operator of this V1alpha3DeviceToleration. # noqa: E501 + :param operator: The operator of this V1DeviceToleration. # noqa: E501 :type: str """ @@ -143,22 +143,22 @@ def operator(self, operator): @property def toleration_seconds(self): - """Gets the toleration_seconds of this V1alpha3DeviceToleration. # noqa: E501 + """Gets the toleration_seconds of this V1DeviceToleration. # noqa: E501 TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as