diff --git a/settings b/settings index 06c43a14ef..df06b3f371 100644 --- a/settings +++ b/settings @@ -21,7 +21,7 @@ export GEN_COMMIT=b461333bb57fa2dc2152f939ed70bac3cef2c1f6 export USERNAME=kubernetes # Kubernetes branch/tag to get the OpenAPI spec from. -export KUBERNETES_BRANCH="v1.33.0" +export KUBERNETES_BRANCH="v1.34.0" # client version for packaging and releasing. It can # be different than SPEC_VERSION. diff --git a/src/gen/.openapi-generator/FILES b/src/gen/.openapi-generator/FILES index 4bed80a8d4..46e2987185 100644 --- a/src/gen/.openapi-generator/FILES +++ b/src/gen/.openapi-generator/FILES @@ -52,6 +52,7 @@ README.md RbacAuthorizationApi.md RbacAuthorizationV1Api.md ResourceApi.md +ResourceV1Api.md ResourceV1alpha3Api.md ResourceV1beta1Api.md ResourceV1beta2Api.md @@ -116,6 +117,7 @@ apis/PolicyV1Api.ts apis/RbacAuthorizationApi.ts apis/RbacAuthorizationV1Api.ts apis/ResourceApi.ts +apis/ResourceV1Api.ts apis/ResourceV1alpha3Api.ts apis/ResourceV1beta1Api.ts apis/ResourceV1beta2Api.ts @@ -148,6 +150,7 @@ models/CoreV1EndpointPort.ts models/CoreV1Event.ts models/CoreV1EventList.ts models/CoreV1EventSeries.ts +models/CoreV1ResourceClaim.ts models/DiscoveryV1EndpointPort.ts models/EventsV1Event.ts models/EventsV1EventList.ts @@ -155,6 +158,7 @@ models/EventsV1EventSeries.ts models/FlowcontrolV1Subject.ts models/ObjectSerializer.ts models/RbacV1Subject.ts +models/ResourceV1ResourceClaim.ts models/StorageV1TokenRequest.ts models/V1APIGroup.ts models/V1APIGroupList.ts @@ -169,6 +173,8 @@ models/V1APIVersions.ts models/V1AWSElasticBlockStoreVolumeSource.ts models/V1Affinity.ts models/V1AggregationRule.ts +models/V1AllocatedDeviceStatus.ts +models/V1AllocationResult.ts models/V1AppArmorProfile.ts models/V1AttachedVolume.ts models/V1AuditAnnotation.ts @@ -177,6 +183,7 @@ models/V1AzureFilePersistentVolumeSource.ts models/V1AzureFileVolumeSource.ts models/V1Binding.ts models/V1BoundObjectReference.ts +models/V1CELDeviceSelector.ts models/V1CSIDriver.ts models/V1CSIDriverList.ts models/V1CSIDriverSpec.ts @@ -189,6 +196,9 @@ models/V1CSIStorageCapacity.ts models/V1CSIStorageCapacityList.ts models/V1CSIVolumeSource.ts models/V1Capabilities.ts +models/V1CapacityRequestPolicy.ts +models/V1CapacityRequestPolicyRange.ts +models/V1CapacityRequirements.ts models/V1CephFSPersistentVolumeSource.ts models/V1CephFSVolumeSource.ts models/V1CertificateSigningRequest.ts @@ -216,9 +226,12 @@ models/V1ConfigMapNodeConfigSource.ts models/V1ConfigMapProjection.ts models/V1ConfigMapVolumeSource.ts models/V1Container.ts +models/V1ContainerExtendedResourceRequest.ts models/V1ContainerImage.ts models/V1ContainerPort.ts models/V1ContainerResizePolicy.ts +models/V1ContainerRestartRule.ts +models/V1ContainerRestartRuleOnExitCodes.ts models/V1ContainerState.ts models/V1ContainerStateRunning.ts models/V1ContainerStateTerminated.ts @@ -227,6 +240,8 @@ models/V1ContainerStatus.ts models/V1ContainerUser.ts models/V1ControllerRevision.ts models/V1ControllerRevisionList.ts +models/V1Counter.ts +models/V1CounterSet.ts models/V1CronJob.ts models/V1CronJobList.ts models/V1CronJobSpec.ts @@ -258,6 +273,25 @@ models/V1DeploymentList.ts models/V1DeploymentSpec.ts models/V1DeploymentStatus.ts models/V1DeploymentStrategy.ts +models/V1Device.ts +models/V1DeviceAllocationConfiguration.ts +models/V1DeviceAllocationResult.ts +models/V1DeviceAttribute.ts +models/V1DeviceCapacity.ts +models/V1DeviceClaim.ts +models/V1DeviceClaimConfiguration.ts +models/V1DeviceClass.ts +models/V1DeviceClassConfiguration.ts +models/V1DeviceClassList.ts +models/V1DeviceClassSpec.ts +models/V1DeviceConstraint.ts +models/V1DeviceCounterConsumption.ts +models/V1DeviceRequest.ts +models/V1DeviceRequestAllocationResult.ts +models/V1DeviceSelector.ts +models/V1DeviceSubRequest.ts +models/V1DeviceTaint.ts +models/V1DeviceToleration.ts models/V1DownwardAPIProjection.ts models/V1DownwardAPIVolumeFile.ts models/V1DownwardAPIVolumeSource.ts @@ -278,6 +312,7 @@ models/V1EphemeralContainer.ts models/V1EphemeralVolumeSource.ts models/V1EventSource.ts models/V1Eviction.ts +models/V1ExactDeviceRequest.ts models/V1ExecAction.ts models/V1ExemptPriorityLevelConfiguration.ts models/V1ExpressionWarning.ts @@ -285,6 +320,7 @@ models/V1ExternalDocumentation.ts models/V1FCVolumeSource.ts models/V1FieldSelectorAttributes.ts models/V1FieldSelectorRequirement.ts +models/V1FileKeySelector.ts models/V1FlexPersistentVolumeSource.ts models/V1FlexVolumeSource.ts models/V1FlockerVolumeSource.ts @@ -379,6 +415,7 @@ models/V1NamespaceCondition.ts models/V1NamespaceList.ts models/V1NamespaceSpec.ts models/V1NamespaceStatus.ts +models/V1NetworkDeviceData.ts models/V1NetworkPolicy.ts models/V1NetworkPolicyEgressRule.ts models/V1NetworkPolicyIngressRule.ts @@ -410,6 +447,7 @@ models/V1NonResourceRule.ts models/V1ObjectFieldSelector.ts models/V1ObjectMeta.ts models/V1ObjectReference.ts +models/V1OpaqueDeviceConfiguration.ts models/V1Overhead.ts models/V1OwnerReference.ts models/V1ParamKind.ts @@ -431,6 +469,7 @@ models/V1Pod.ts models/V1PodAffinity.ts models/V1PodAffinityTerm.ts models/V1PodAntiAffinity.ts +models/V1PodCertificateProjection.ts models/V1PodCondition.ts models/V1PodDNSConfig.ts models/V1PodDNSConfigOption.ts @@ -438,6 +477,7 @@ models/V1PodDisruptionBudget.ts models/V1PodDisruptionBudgetList.ts models/V1PodDisruptionBudgetSpec.ts models/V1PodDisruptionBudgetStatus.ts +models/V1PodExtendedResourceClaimStatus.ts models/V1PodFailurePolicy.ts models/V1PodFailurePolicyOnExitCodesRequirement.ts models/V1PodFailurePolicyOnPodConditionsPattern.ts @@ -486,16 +526,26 @@ models/V1ReplicationControllerList.ts models/V1ReplicationControllerSpec.ts models/V1ReplicationControllerStatus.ts models/V1ResourceAttributes.ts -models/V1ResourceClaim.ts +models/V1ResourceClaimConsumerReference.ts +models/V1ResourceClaimList.ts +models/V1ResourceClaimSpec.ts +models/V1ResourceClaimStatus.ts +models/V1ResourceClaimTemplate.ts +models/V1ResourceClaimTemplateList.ts +models/V1ResourceClaimTemplateSpec.ts models/V1ResourceFieldSelector.ts models/V1ResourceHealth.ts models/V1ResourcePolicyRule.ts +models/V1ResourcePool.ts models/V1ResourceQuota.ts models/V1ResourceQuotaList.ts models/V1ResourceQuotaSpec.ts models/V1ResourceQuotaStatus.ts models/V1ResourceRequirements.ts models/V1ResourceRule.ts +models/V1ResourceSlice.ts +models/V1ResourceSliceList.ts +models/V1ResourceSliceSpec.ts models/V1ResourceStatus.ts models/V1Role.ts models/V1RoleBinding.ts @@ -608,6 +658,8 @@ models/V1VolumeAttachmentList.ts models/V1VolumeAttachmentSource.ts models/V1VolumeAttachmentSpec.ts models/V1VolumeAttachmentStatus.ts +models/V1VolumeAttributesClass.ts +models/V1VolumeAttributesClassList.ts models/V1VolumeDevice.ts models/V1VolumeError.ts models/V1VolumeMount.ts @@ -640,6 +692,10 @@ models/V1alpha1Mutation.ts models/V1alpha1NamedRuleWithOperations.ts models/V1alpha1ParamKind.ts models/V1alpha1ParamRef.ts +models/V1alpha1PodCertificateRequest.ts +models/V1alpha1PodCertificateRequestList.ts +models/V1alpha1PodCertificateRequestSpec.ts +models/V1alpha1PodCertificateRequestStatus.ts models/V1alpha1ServerStorageVersion.ts models/V1alpha1StorageVersion.ts models/V1alpha1StorageVersionCondition.ts @@ -655,53 +711,21 @@ models/V1alpha1VolumeAttributesClassList.ts models/V1alpha2LeaseCandidate.ts models/V1alpha2LeaseCandidateList.ts models/V1alpha2LeaseCandidateSpec.ts -models/V1alpha3AllocatedDeviceStatus.ts -models/V1alpha3AllocationResult.ts -models/V1alpha3BasicDevice.ts models/V1alpha3CELDeviceSelector.ts -models/V1alpha3Counter.ts -models/V1alpha3CounterSet.ts -models/V1alpha3Device.ts -models/V1alpha3DeviceAllocationConfiguration.ts -models/V1alpha3DeviceAllocationResult.ts -models/V1alpha3DeviceAttribute.ts -models/V1alpha3DeviceClaim.ts -models/V1alpha3DeviceClaimConfiguration.ts -models/V1alpha3DeviceClass.ts -models/V1alpha3DeviceClassConfiguration.ts -models/V1alpha3DeviceClassList.ts -models/V1alpha3DeviceClassSpec.ts -models/V1alpha3DeviceConstraint.ts -models/V1alpha3DeviceCounterConsumption.ts -models/V1alpha3DeviceRequest.ts -models/V1alpha3DeviceRequestAllocationResult.ts models/V1alpha3DeviceSelector.ts -models/V1alpha3DeviceSubRequest.ts models/V1alpha3DeviceTaint.ts models/V1alpha3DeviceTaintRule.ts models/V1alpha3DeviceTaintRuleList.ts models/V1alpha3DeviceTaintRuleSpec.ts models/V1alpha3DeviceTaintSelector.ts -models/V1alpha3DeviceToleration.ts -models/V1alpha3NetworkDeviceData.ts -models/V1alpha3OpaqueDeviceConfiguration.ts -models/V1alpha3ResourceClaim.ts -models/V1alpha3ResourceClaimConsumerReference.ts -models/V1alpha3ResourceClaimList.ts -models/V1alpha3ResourceClaimSpec.ts -models/V1alpha3ResourceClaimStatus.ts -models/V1alpha3ResourceClaimTemplate.ts -models/V1alpha3ResourceClaimTemplateList.ts -models/V1alpha3ResourceClaimTemplateSpec.ts -models/V1alpha3ResourcePool.ts -models/V1alpha3ResourceSlice.ts -models/V1alpha3ResourceSliceList.ts -models/V1alpha3ResourceSliceSpec.ts models/V1beta1AllocatedDeviceStatus.ts models/V1beta1AllocationResult.ts -models/V1beta1AuditAnnotation.ts +models/V1beta1ApplyConfiguration.ts models/V1beta1BasicDevice.ts models/V1beta1CELDeviceSelector.ts +models/V1beta1CapacityRequestPolicy.ts +models/V1beta1CapacityRequestPolicyRange.ts +models/V1beta1CapacityRequirements.ts models/V1beta1ClusterTrustBundle.ts models/V1beta1ClusterTrustBundleList.ts models/V1beta1ClusterTrustBundleSpec.ts @@ -726,15 +750,22 @@ models/V1beta1DeviceSelector.ts models/V1beta1DeviceSubRequest.ts models/V1beta1DeviceTaint.ts models/V1beta1DeviceToleration.ts -models/V1beta1ExpressionWarning.ts models/V1beta1IPAddress.ts models/V1beta1IPAddressList.ts models/V1beta1IPAddressSpec.ts +models/V1beta1JSONPatch.ts models/V1beta1LeaseCandidate.ts models/V1beta1LeaseCandidateList.ts models/V1beta1LeaseCandidateSpec.ts models/V1beta1MatchCondition.ts models/V1beta1MatchResources.ts +models/V1beta1MutatingAdmissionPolicy.ts +models/V1beta1MutatingAdmissionPolicyBinding.ts +models/V1beta1MutatingAdmissionPolicyBindingList.ts +models/V1beta1MutatingAdmissionPolicyBindingSpec.ts +models/V1beta1MutatingAdmissionPolicyList.ts +models/V1beta1MutatingAdmissionPolicySpec.ts +models/V1beta1Mutation.ts models/V1beta1NamedRuleWithOperations.ts models/V1beta1NetworkDeviceData.ts models/V1beta1OpaqueDeviceConfiguration.ts @@ -757,21 +788,15 @@ models/V1beta1ServiceCIDR.ts models/V1beta1ServiceCIDRList.ts models/V1beta1ServiceCIDRSpec.ts models/V1beta1ServiceCIDRStatus.ts -models/V1beta1TypeChecking.ts -models/V1beta1ValidatingAdmissionPolicy.ts -models/V1beta1ValidatingAdmissionPolicyBinding.ts -models/V1beta1ValidatingAdmissionPolicyBindingList.ts -models/V1beta1ValidatingAdmissionPolicyBindingSpec.ts -models/V1beta1ValidatingAdmissionPolicyList.ts -models/V1beta1ValidatingAdmissionPolicySpec.ts -models/V1beta1ValidatingAdmissionPolicyStatus.ts -models/V1beta1Validation.ts models/V1beta1Variable.ts models/V1beta1VolumeAttributesClass.ts models/V1beta1VolumeAttributesClassList.ts models/V1beta2AllocatedDeviceStatus.ts models/V1beta2AllocationResult.ts models/V1beta2CELDeviceSelector.ts +models/V1beta2CapacityRequestPolicy.ts +models/V1beta2CapacityRequestPolicyRange.ts +models/V1beta2CapacityRequirements.ts models/V1beta2Counter.ts models/V1beta2CounterSet.ts models/V1beta2Device.ts diff --git a/src/gen/.openapi-generator/swagger.json-default.sha256 b/src/gen/.openapi-generator/swagger.json-default.sha256 index b2a5a48a0d..578185bae9 100644 --- a/src/gen/.openapi-generator/swagger.json-default.sha256 +++ b/src/gen/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -0db1cb9dd22c621126b5cd142f30d5a0c767198676b60f274f5e98b7849ce7fb \ No newline at end of file +3efca78d56ffd7ba8786561b0a496d57aff5485bd5c170d11cde9858bb53d53f \ No newline at end of file diff --git a/src/gen/AdmissionregistrationV1beta1Api.md b/src/gen/AdmissionregistrationV1beta1Api.md index 4e47737e28..41b35289ea 100644 --- a/src/gen/AdmissionregistrationV1beta1Api.md +++ b/src/gen/AdmissionregistrationV1beta1Api.md @@ -4,42 +4,39 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | -[**createValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | -[**deleteCollectionValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | -[**deleteCollectionValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | -[**deleteValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -[**deleteValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | +[**createMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#createMutatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | +[**createMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#createMutatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | +[**deleteCollectionMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteCollectionMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | +[**deleteCollectionMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteCollectionMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | +[**deleteMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +[**deleteMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | [**getAPIResources**](AdmissionregistrationV1beta1Api.md#getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1beta1/ | -[**listValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | -[**listValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | -[**patchValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -[**patchValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | -[**patchValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicyStatus) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | -[**readValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -[**readValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | -[**readValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicyStatus) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | -[**replaceValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -[**replaceValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | -[**replaceValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicyStatus) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | +[**listMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#listMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | +[**listMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#listMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | +[**patchMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#patchMutatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +[**patchMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#patchMutatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | +[**readMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#readMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +[**readMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#readMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | +[**replaceMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#replaceMutatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +[**replaceMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#replaceMutatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | -# **createValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(body) +# **createMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy createMutatingAdmissionPolicy(body) -create a ValidatingAdmissionPolicy +create a MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyRequest = { +const request: AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyRequest = { body: { apiVersion: "apiVersion_example", @@ -87,12 +84,6 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyReq uid: "uid_example", }, spec: { - auditAnnotations: [ - { - key: "key_example", - valueExpression: "valueExpression_example", - }, - ], failurePolicy: "failurePolicy_example", matchConditions: [ { @@ -171,18 +162,22 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyReq }, ], }, + mutations: [ + { + applyConfiguration: { + expression: "expression_example", + }, + jsonPatch: { + expression: "expression_example", + }, + patchType: "patchType_example", + }, + ], paramKind: { apiVersion: "apiVersion_example", kind: "kind_example", }, - validations: [ - { - expression: "expression_example", - message: "message_example", - messageExpression: "messageExpression_example", - reason: "reason_example", - }, - ], + reinvocationPolicy: "reinvocationPolicy_example", variables: [ { expression: "expression_example", @@ -190,27 +185,6 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyReq }, ], }, - status: { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - observedGeneration: 1, - typeChecking: { - expressionWarnings: [ - { - fieldRef: "fieldRef_example", - warning: "warning_example", - }, - ], - }, - }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", @@ -222,7 +196,7 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyReq fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createValidatingAdmissionPolicy(request); +const data = await apiInstance.createMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -231,7 +205,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicy**| | + **body** | **V1beta1MutatingAdmissionPolicy**| | **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -240,7 +214,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicy** ### Authorization @@ -262,22 +236,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **createValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(body) +# **createMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding createMutatingAdmissionPolicyBinding(body) -create a ValidatingAdmissionPolicyBinding +create a MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBindingRequest = { +const request: AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyBindingRequest = { body: { apiVersion: "apiVersion_example", @@ -416,9 +390,6 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBin }, }, policyName: "policyName_example", - validationActions: [ - "validationActions_example", - ], }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -431,7 +402,7 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBin fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.createMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -440,7 +411,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicyBinding**| | + **body** | **V1beta1MutatingAdmissionPolicyBinding**| | **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -449,7 +420,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicyBinding** +**V1beta1MutatingAdmissionPolicyBinding** ### Authorization @@ -471,22 +442,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionValidatingAdmissionPolicy** -> V1Status deleteCollectionValidatingAdmissionPolicy() +# **deleteCollectionMutatingAdmissionPolicy** +> V1Status deleteCollectionMutatingAdmissionPolicy() -delete collection of ValidatingAdmissionPolicy +delete collection of MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyRequest = { +const request: AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -533,7 +504,7 @@ const request: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissio }, }; -const data = await apiInstance.deleteCollectionValidatingAdmissionPolicy(request); +const data = await apiInstance.deleteCollectionMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -581,22 +552,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionValidatingAdmissionPolicyBinding** -> V1Status deleteCollectionValidatingAdmissionPolicyBinding() +# **deleteCollectionMutatingAdmissionPolicyBinding** +> V1Status deleteCollectionMutatingAdmissionPolicyBinding() -delete collection of ValidatingAdmissionPolicyBinding +delete collection of MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest = { +const request: AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -643,7 +614,7 @@ const request: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissio }, }; -const data = await apiInstance.deleteCollectionValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.deleteCollectionMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -691,23 +662,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteValidatingAdmissionPolicy** -> V1Status deleteValidatingAdmissionPolicy() +# **deleteMutatingAdmissionPolicy** +> V1Status deleteMutatingAdmissionPolicy() -delete a ValidatingAdmissionPolicy +delete a MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyRequest = { - // name of the ValidatingAdmissionPolicy +const request: AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyRequest = { + // name of the MutatingAdmissionPolicy name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", @@ -739,7 +710,7 @@ const request: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyReq }, }; -const data = await apiInstance.deleteValidatingAdmissionPolicy(request); +const data = await apiInstance.deleteMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -749,7 +720,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicy | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined @@ -781,23 +752,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteValidatingAdmissionPolicyBinding** -> V1Status deleteValidatingAdmissionPolicyBinding() +# **deleteMutatingAdmissionPolicyBinding** +> V1Status deleteMutatingAdmissionPolicyBinding() -delete a ValidatingAdmissionPolicyBinding +delete a MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBindingRequest = { - // name of the ValidatingAdmissionPolicyBinding +const request: AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyBindingRequest = { + // name of the MutatingAdmissionPolicyBinding name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", @@ -829,7 +800,7 @@ const request: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBin }, }; -const data = await apiInstance.deleteValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.deleteMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -839,7 +810,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicyBinding | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicyBinding | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined @@ -918,22 +889,22 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy() +# **listMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicyList listMutatingAdmissionPolicy() -list or watch objects of kind ValidatingAdmissionPolicy +list or watch objects of kind MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyRequest = { +const request: AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -958,7 +929,7 @@ const request: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyReque watch: true, }; -const data = await apiInstance.listValidatingAdmissionPolicy(request); +const data = await apiInstance.listMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -982,7 +953,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicyList** +**V1beta1MutatingAdmissionPolicyList** ### Authorization @@ -1002,22 +973,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding() +# **listMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding() -list or watch objects of kind ValidatingAdmissionPolicyBinding +list or watch objects of kind MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindingRequest = { +const request: AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyBindingRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -1042,7 +1013,7 @@ const request: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindi watch: true, }; -const data = await apiInstance.listValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.listMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -1066,7 +1037,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicyBindingList** +**V1beta1MutatingAdmissionPolicyBindingList** ### Authorization @@ -1086,23 +1057,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(body) +# **patchMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy patchMutatingAdmissionPolicy(body) -partially update the specified ValidatingAdmissionPolicy +partially update the specified MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequest = { - // name of the ValidatingAdmissionPolicy +const request: AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyRequest = { + // name of the MutatingAdmissionPolicy name: "name_example", body: {}, @@ -1118,7 +1089,7 @@ const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequ force: true, }; -const data = await apiInstance.patchValidatingAdmissionPolicy(request); +const data = await apiInstance.patchMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -1128,7 +1099,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **any**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicy | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined @@ -1138,7 +1109,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicy** ### Authorization @@ -1159,23 +1130,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(body) +# **patchMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding patchMutatingAdmissionPolicyBinding(body) -partially update the specified ValidatingAdmissionPolicyBinding +partially update the specified MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBindingRequest = { - // name of the ValidatingAdmissionPolicyBinding +const request: AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyBindingRequest = { + // name of the MutatingAdmissionPolicyBinding name: "name_example", body: {}, @@ -1191,7 +1162,7 @@ const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBind force: true, }; -const data = await apiInstance.patchValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.patchMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -1201,7 +1172,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **any**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicyBinding | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicyBinding | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined @@ -1211,7 +1182,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicyBinding** +**V1beta1MutatingAdmissionPolicyBinding** ### Authorization @@ -1232,159 +1203,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(body) - -partially update status of the specified ValidatingAdmissionPolicy - -### Example - - -```typescript -import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new AdmissionregistrationV1beta1Api(configuration); - -const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyStatusRequest = { - // name of the ValidatingAdmissionPolicy - name: "name_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchValidatingAdmissionPolicyStatus(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1beta1ValidatingAdmissionPolicy** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicy() - -read the specified ValidatingAdmissionPolicy - -### Example - - -```typescript -import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new AdmissionregistrationV1beta1Api(configuration); - -const request: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyRequest = { - // name of the ValidatingAdmissionPolicy - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readValidatingAdmissionPolicy(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1beta1ValidatingAdmissionPolicy** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding() +# **readMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy readMutatingAdmissionPolicy() -read the specified ValidatingAdmissionPolicyBinding +read the specified MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyBindingRequest = { - // name of the ValidatingAdmissionPolicyBinding +const request: AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyRequest = { + // name of the MutatingAdmissionPolicy name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", }; -const data = await apiInstance.readValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.readMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -1393,13 +1234,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ValidatingAdmissionPolicyBinding | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicy | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined ### Return type -**V1beta1ValidatingAdmissionPolicyBinding** +**V1beta1MutatingAdmissionPolicy** ### Authorization @@ -1419,29 +1260,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **readValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus() +# **readMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding readMutatingAdmissionPolicyBinding() -read status of the specified ValidatingAdmissionPolicy +read the specified MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyStatusRequest } from ''; +import type { AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyStatusRequest = { - // name of the ValidatingAdmissionPolicy +const request: AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyBindingRequest = { + // name of the MutatingAdmissionPolicyBinding name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", }; -const data = await apiInstance.readValidatingAdmissionPolicyStatus(request); +const data = await apiInstance.readMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -1450,13 +1291,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicyBinding | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicyBinding** ### Authorization @@ -1476,23 +1317,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(body) +# **replaceMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy replaceMutatingAdmissionPolicy(body) -replace the specified ValidatingAdmissionPolicy +replace the specified MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRequest = { - // name of the ValidatingAdmissionPolicy +const request: AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyRequest = { + // name of the MutatingAdmissionPolicy name: "name_example", body: { @@ -1541,12 +1382,6 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRe uid: "uid_example", }, spec: { - auditAnnotations: [ - { - key: "key_example", - valueExpression: "valueExpression_example", - }, - ], failurePolicy: "failurePolicy_example", matchConditions: [ { @@ -1625,18 +1460,22 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRe }, ], }, + mutations: [ + { + applyConfiguration: { + expression: "expression_example", + }, + jsonPatch: { + expression: "expression_example", + }, + patchType: "patchType_example", + }, + ], paramKind: { apiVersion: "apiVersion_example", kind: "kind_example", }, - validations: [ - { - expression: "expression_example", - message: "message_example", - messageExpression: "messageExpression_example", - reason: "reason_example", - }, - ], + reinvocationPolicy: "reinvocationPolicy_example", variables: [ { expression: "expression_example", @@ -1644,27 +1483,6 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRe }, ], }, - status: { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - observedGeneration: 1, - typeChecking: { - expressionWarnings: [ - { - fieldRef: "fieldRef_example", - warning: "warning_example", - }, - ], - }, - }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", @@ -1676,7 +1494,7 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRe fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceValidatingAdmissionPolicy(request); +const data = await apiInstance.replaceMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -1685,8 +1503,8 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicy**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **body** | **V1beta1MutatingAdmissionPolicy**| | + **name** | [**string**] | name of the MutatingAdmissionPolicy | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -1695,7 +1513,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicy** ### Authorization @@ -1716,23 +1534,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyBinding(body) +# **replaceMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding replaceMutatingAdmissionPolicyBinding(body) -replace the specified ValidatingAdmissionPolicyBinding +replace the specified MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBindingRequest = { - // name of the ValidatingAdmissionPolicyBinding +const request: AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyBindingRequest = { + // name of the MutatingAdmissionPolicyBinding name: "name_example", body: { @@ -1872,249 +1690,6 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBi }, }, policyName: "policyName_example", - validationActions: [ - "validationActions_example", - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.replaceValidatingAdmissionPolicyBinding(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicyBinding**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicyBinding | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1beta1ValidatingAdmissionPolicyBinding** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(body) - -replace status of the specified ValidatingAdmissionPolicy - -### Example - - -```typescript -import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new AdmissionregistrationV1beta1Api(configuration); - -const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyStatusRequest = { - // name of the ValidatingAdmissionPolicy - name: "name_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - auditAnnotations: [ - { - key: "key_example", - valueExpression: "valueExpression_example", - }, - ], - failurePolicy: "failurePolicy_example", - matchConditions: [ - { - expression: "expression_example", - name: "name_example", - }, - ], - matchConstraints: { - excludeResourceRules: [ - { - apiGroups: [ - "apiGroups_example", - ], - apiVersions: [ - "apiVersions_example", - ], - operations: [ - "operations_example", - ], - resourceNames: [ - "resourceNames_example", - ], - resources: [ - "resources_example", - ], - scope: "scope_example", - }, - ], - matchPolicy: "matchPolicy_example", - namespaceSelector: { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchLabels: { - "key": "key_example", - }, - }, - objectSelector: { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchLabels: { - "key": "key_example", - }, - }, - resourceRules: [ - { - apiGroups: [ - "apiGroups_example", - ], - apiVersions: [ - "apiVersions_example", - ], - operations: [ - "operations_example", - ], - resourceNames: [ - "resourceNames_example", - ], - resources: [ - "resources_example", - ], - scope: "scope_example", - }, - ], - }, - paramKind: { - apiVersion: "apiVersion_example", - kind: "kind_example", - }, - validations: [ - { - expression: "expression_example", - message: "message_example", - messageExpression: "messageExpression_example", - reason: "reason_example", - }, - ], - variables: [ - { - expression: "expression_example", - name: "name_example", - }, - ], - }, - status: { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - observedGeneration: 1, - typeChecking: { - expressionWarnings: [ - { - fieldRef: "fieldRef_example", - warning: "warning_example", - }, - ], - }, }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -2127,7 +1702,7 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicySt fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceValidatingAdmissionPolicyStatus(request); +const data = await apiInstance.replaceMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -2136,8 +1711,8 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicy**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **body** | **V1beta1MutatingAdmissionPolicyBinding**| | + **name** | [**string**] | name of the MutatingAdmissionPolicyBinding | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -2146,7 +1721,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicyBinding** ### Authorization diff --git a/src/gen/AppsV1Api.md b/src/gen/AppsV1Api.md index 9d9830326d..086322b517 100644 --- a/src/gen/AppsV1Api.md +++ b/src/gen/AppsV1Api.md @@ -566,6 +566,12 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -746,6 +752,17 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -879,6 +896,12 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -1059,6 +1082,17 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -1168,6 +1202,7 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -1195,6 +1230,12 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -1375,6 +1416,17 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -1909,6 +1961,14 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -2465,6 +2525,12 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -2645,6 +2711,17 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -2778,6 +2855,12 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -2958,6 +3041,17 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -3067,6 +3161,7 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -3094,6 +3189,12 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -3274,6 +3375,17 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -3808,6 +3920,14 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -4347,6 +4467,12 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -4527,6 +4653,17 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -4660,6 +4797,12 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -4840,6 +4983,17 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -4949,6 +5103,7 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -4976,6 +5131,12 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -5156,6 +5317,17 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -5690,6 +5862,14 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -6236,6 +6416,12 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6416,6 +6602,17 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -6549,6 +6746,12 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6729,6 +6932,17 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -6838,6 +7052,7 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -6865,6 +7080,12 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7045,6 +7266,17 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -7579,6 +7811,14 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -11931,6 +12171,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12111,6 +12357,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -12244,6 +12501,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12424,6 +12687,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -12533,6 +12807,7 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -12560,6 +12835,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12740,6 +13021,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -13274,6 +13566,14 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -13822,6 +14122,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -14002,6 +14308,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -14135,6 +14452,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -14315,6 +14638,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -14424,6 +14758,7 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -14451,6 +14786,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -14631,6 +14972,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -15165,6 +15517,14 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -15723,6 +16083,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -15903,6 +16269,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -16036,6 +16413,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -16216,6 +16599,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -16325,6 +16719,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -16352,6 +16747,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -16532,6 +16933,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -17066,6 +17478,14 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -17742,6 +18162,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -17922,6 +18348,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -18055,6 +18492,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -18235,6 +18678,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -18344,6 +18798,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -18371,6 +18826,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -18551,6 +19012,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -19085,6 +19557,14 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -19626,6 +20106,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -19806,6 +20292,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -19939,6 +20436,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -20119,6 +20622,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -20228,6 +20742,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -20255,6 +20770,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -20435,6 +20956,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -20969,6 +21501,14 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -21632,6 +22172,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -21812,6 +22358,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -21945,6 +22502,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -22125,6 +22688,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -22234,6 +22808,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -22261,6 +22836,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -22441,6 +23022,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -22975,6 +23567,14 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -23523,6 +24123,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -23703,6 +24309,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -23836,6 +24453,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -24016,6 +24639,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -24125,6 +24759,7 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -24152,6 +24787,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -24332,6 +24973,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -24866,6 +25518,14 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -25669,6 +26329,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -25849,6 +26515,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -25982,6 +26659,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -26162,6 +26845,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -26271,6 +26965,7 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -26298,6 +26993,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -26478,6 +27179,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -27012,6 +27724,14 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { diff --git a/src/gen/BatchV1Api.md b/src/gen/BatchV1Api.md index 6dd087b2f3..2003ec1911 100644 --- a/src/gen/BatchV1Api.md +++ b/src/gen/BatchV1Api.md @@ -492,6 +492,12 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -672,6 +678,17 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -805,6 +822,12 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -985,6 +1008,17 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -1094,6 +1128,7 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -1121,6 +1156,12 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -1301,6 +1342,17 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -1835,6 +1887,14 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -2414,6 +2474,12 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -2594,6 +2660,17 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -2727,6 +2804,12 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -2907,6 +2990,17 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -3016,6 +3110,7 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -3043,6 +3138,12 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -3223,6 +3324,17 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -3757,6 +3869,14 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -5736,6 +5856,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -5916,6 +6042,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -6049,6 +6186,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6229,6 +6372,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -6338,6 +6492,7 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -6365,6 +6520,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6545,6 +6706,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -7079,6 +7251,14 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -7706,6 +7886,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7886,6 +8072,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -8019,6 +8216,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -8199,6 +8402,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -8308,6 +8522,7 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -8335,6 +8550,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -8515,6 +8736,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -9049,6 +9281,14 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -9630,6 +9870,12 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -9810,6 +10056,17 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -9943,6 +10200,12 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -10123,6 +10386,17 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -10232,6 +10506,7 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -10259,6 +10534,12 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -10439,6 +10720,17 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -10973,6 +11265,14 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -11561,6 +11861,12 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -11741,6 +12047,17 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -11874,6 +12191,12 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12054,6 +12377,17 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -12163,6 +12497,7 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -12190,6 +12525,12 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12370,6 +12711,17 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -12904,6 +13256,14 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { diff --git a/src/gen/CertificatesV1alpha1Api.md b/src/gen/CertificatesV1alpha1Api.md index 359cf306c8..422a2847ba 100644 --- a/src/gen/CertificatesV1alpha1Api.md +++ b/src/gen/CertificatesV1alpha1Api.md @@ -5,13 +5,24 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**createClusterTrustBundle**](CertificatesV1alpha1Api.md#createClusterTrustBundle) | **POST** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | +[**createNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#createNamespacedPodCertificateRequest) | **POST** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | [**deleteClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | [**deleteCollectionClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteCollectionClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | +[**deleteCollectionNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#deleteCollectionNamespacedPodCertificateRequest) | **DELETE** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | +[**deleteNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#deleteNamespacedPodCertificateRequest) | **DELETE** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | [**getAPIResources**](CertificatesV1alpha1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | [**listClusterTrustBundle**](CertificatesV1alpha1Api.md#listClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | +[**listNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#listNamespacedPodCertificateRequest) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | +[**listPodCertificateRequestForAllNamespaces**](CertificatesV1alpha1Api.md#listPodCertificateRequestForAllNamespaces) | **GET** /apis/certificates.k8s.io/v1alpha1/podcertificaterequests | [**patchClusterTrustBundle**](CertificatesV1alpha1Api.md#patchClusterTrustBundle) | **PATCH** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +[**patchNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#patchNamespacedPodCertificateRequest) | **PATCH** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | +[**patchNamespacedPodCertificateRequestStatus**](CertificatesV1alpha1Api.md#patchNamespacedPodCertificateRequestStatus) | **PATCH** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | [**readClusterTrustBundle**](CertificatesV1alpha1Api.md#readClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +[**readNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#readNamespacedPodCertificateRequest) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | +[**readNamespacedPodCertificateRequestStatus**](CertificatesV1alpha1Api.md#readNamespacedPodCertificateRequestStatus) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | [**replaceClusterTrustBundle**](CertificatesV1alpha1Api.md#replaceClusterTrustBundle) | **PUT** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +[**replaceNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#replaceNamespacedPodCertificateRequest) | **PUT** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | +[**replaceNamespacedPodCertificateRequestStatus**](CertificatesV1alpha1Api.md#replaceNamespacedPodCertificateRequestStatus) | **PUT** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | # **createClusterTrustBundle** @@ -121,6 +132,150 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest createNamespacedPodCertificateRequest(body) + +create a PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiCreateNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiCreateNamespacedPodCertificateRequestRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + maxExpirationSeconds: 1, + nodeName: "nodeName_example", + nodeUID: "nodeUID_example", + pkixPublicKey: 'YQ==', + podName: "podName_example", + podUID: "podUID_example", + proofOfPossession: 'YQ==', + serviceAccountName: "serviceAccountName_example", + serviceAccountUID: "serviceAccountUID_example", + signerName: "signerName_example", + }, + status: { + beginRefreshAt: new Date('1970-01-01T00:00:00.00Z'), + certificateChain: "certificateChain_example", + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + notAfter: new Date('1970-01-01T00:00:00.00Z'), + notBefore: new Date('1970-01-01T00:00:00.00Z'), + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1alpha1PodCertificateRequest**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequest** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -283,7 +438,810 @@ const request: CertificatesV1alpha1ApiDeleteCollectionClusterTrustBundleRequest }, }; -const data = await apiInstance.deleteCollectionClusterTrustBundle(request); +const data = await apiInstance.deleteCollectionClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionNamespacedPodCertificateRequest** +> V1Status deleteCollectionNamespacedPodCertificateRequest() + +delete collection of PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiDeleteCollectionNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiDeleteCollectionNamespacedPodCertificateRequestRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteNamespacedPodCertificateRequest** +> V1Status deleteNamespacedPodCertificateRequest() + +delete a PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiDeleteNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiDeleteNamespacedPodCertificateRequestRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **getAPIResources** +> V1APIResourceList getAPIResources() + +get available resources + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request = {}; + +const data = await apiInstance.getAPIResources(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**V1APIResourceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listClusterTrustBundle** +> V1alpha1ClusterTrustBundleList listClusterTrustBundle() + +list or watch objects of kind ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiListClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiListClusterTrustBundleRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1alpha1ClusterTrustBundleList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequestList listNamespacedPodCertificateRequest() + +list or watch objects of kind PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiListNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiListNamespacedPodCertificateRequestRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequestList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listPodCertificateRequestForAllNamespaces** +> V1alpha1PodCertificateRequestList listPodCertificateRequestForAllNamespaces() + +list or watch objects of kind PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiListPodCertificateRequestForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiListPodCertificateRequestForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listPodCertificateRequestForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequestList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchClusterTrustBundle** +> V1alpha1ClusterTrustBundle patchClusterTrustBundle(body) + +partially update the specified ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiPatchClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiPatchClusterTrustBundleRequest = { + // name of the ClusterTrustBundle + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1alpha1ClusterTrustBundle** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest patchNamespacedPodCertificateRequest(body) + +partially update the specified PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequest** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest patchNamespacedPodCertificateRequestStatus(body) + +partially update status of the specified PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestStatusRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedPodCertificateRequestStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequest** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readClusterTrustBundle** +> V1alpha1ClusterTrustBundle readClusterTrustBundle() + +read the specified ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiReadClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiReadClusterTrustBundleRequest = { + // name of the ClusterTrustBundle + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readClusterTrustBundle(request); console.log('API called successfully. Returned data:', data); ``` @@ -292,26 +1250,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined ### Return type -**V1Status** +**V1alpha1ClusterTrustBundle** ### Authorization @@ -331,34 +1276,47 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **getAPIResources** -> V1APIResourceList getAPIResources() +# **readNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest readNamespacedPodCertificateRequest() -get available resources +read the specified PodCertificateRequest ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request = {}; +const request: CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; -const data = await apiInstance.getAPIResources(request); +const data = await apiInstance.readNamespacedPodCertificateRequest(request); console.log('API called successfully. Returned data:', data); ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined ### Return type -**V1APIResourceList** +**V1alpha1PodCertificateRequest** ### Authorization @@ -378,47 +1336,31 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listClusterTrustBundle** -> V1alpha1ClusterTrustBundleList listClusterTrustBundle() +# **readNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest readNamespacedPodCertificateRequestStatus() -list or watch objects of kind ClusterTrustBundle +read status of the specified PodCertificateRequest ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; -import type { CertificatesV1alpha1ApiListClusterTrustBundleRequest } from ''; +import type { CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestStatusRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request: CertificatesV1alpha1ApiListClusterTrustBundleRequest = { +const request: CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestStatusRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, }; -const data = await apiInstance.listClusterTrustBundle(request); +const data = await apiInstance.readNamespacedPodCertificateRequestStatus(request); console.log('API called successfully. Returned data:', data); ``` @@ -427,22 +1369,14 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined ### Return type -**V1alpha1ClusterTrustBundleList** +**V1alpha1PodCertificateRequest** ### Authorization @@ -451,7 +1385,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -462,39 +1396,86 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchClusterTrustBundle** -> V1alpha1ClusterTrustBundle patchClusterTrustBundle(body) +# **replaceClusterTrustBundle** +> V1alpha1ClusterTrustBundle replaceClusterTrustBundle(body) -partially update the specified ClusterTrustBundle +replace the specified ClusterTrustBundle ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; -import type { CertificatesV1alpha1ApiPatchClusterTrustBundleRequest } from ''; +import type { CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request: CertificatesV1alpha1ApiPatchClusterTrustBundleRequest = { +const request: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest = { // name of the ClusterTrustBundle name: "name_example", - body: {}, + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + signerName: "signerName_example", + trustBundle: "trustBundle_example", + }, + }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) fieldManager: "fieldManager_example", // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, }; -const data = await apiInstance.patchClusterTrustBundle(request); +const data = await apiInstance.replaceClusterTrustBundle(request); console.log('API called successfully. Returned data:', data); ``` @@ -503,13 +1484,12 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **any**| | + **body** | **V1alpha1ClusterTrustBundle**| | **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined ### Return type @@ -522,7 +1502,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor @@ -535,29 +1515,112 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **readClusterTrustBundle** -> V1alpha1ClusterTrustBundle readClusterTrustBundle() +# **replaceNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest replaceNamespacedPodCertificateRequest(body) -read the specified ClusterTrustBundle +replace the specified PodCertificateRequest ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; -import type { CertificatesV1alpha1ApiReadClusterTrustBundleRequest } from ''; +import type { CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request: CertificatesV1alpha1ApiReadClusterTrustBundleRequest = { - // name of the ClusterTrustBundle +const request: CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestRequest = { + // name of the PodCertificateRequest name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + maxExpirationSeconds: 1, + nodeName: "nodeName_example", + nodeUID: "nodeUID_example", + pkixPublicKey: 'YQ==', + podName: "podName_example", + podUID: "podUID_example", + proofOfPossession: 'YQ==', + serviceAccountName: "serviceAccountName_example", + serviceAccountUID: "serviceAccountUID_example", + signerName: "signerName_example", + }, + status: { + beginRefreshAt: new Date('1970-01-01T00:00:00.00Z'), + certificateChain: "certificateChain_example", + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + notAfter: new Date('1970-01-01T00:00:00.00Z'), + notBefore: new Date('1970-01-01T00:00:00.00Z'), + }, + }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.readClusterTrustBundle(request); +const data = await apiInstance.replaceNamespacedPodCertificateRequest(request); console.log('API called successfully. Returned data:', data); ``` @@ -566,13 +1629,18 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **body** | **V1alpha1PodCertificateRequest**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined ### Return type -**V1alpha1ClusterTrustBundle** +**V1alpha1PodCertificateRequest** ### Authorization @@ -588,28 +1656,31 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceClusterTrustBundle** -> V1alpha1ClusterTrustBundle replaceClusterTrustBundle(body) +# **replaceNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest replaceNamespacedPodCertificateRequestStatus(body) -replace the specified ClusterTrustBundle +replace status of the specified PodCertificateRequest ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; -import type { CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest } from ''; +import type { CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestStatusRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest = { - // name of the ClusterTrustBundle +const request: CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestStatusRequest = { + // name of the PodCertificateRequest name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", body: { apiVersion: "apiVersion_example", @@ -657,8 +1728,32 @@ const request: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest = { uid: "uid_example", }, spec: { + maxExpirationSeconds: 1, + nodeName: "nodeName_example", + nodeUID: "nodeUID_example", + pkixPublicKey: 'YQ==', + podName: "podName_example", + podUID: "podUID_example", + proofOfPossession: 'YQ==', + serviceAccountName: "serviceAccountName_example", + serviceAccountUID: "serviceAccountUID_example", signerName: "signerName_example", - trustBundle: "trustBundle_example", + }, + status: { + beginRefreshAt: new Date('1970-01-01T00:00:00.00Z'), + certificateChain: "certificateChain_example", + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + notAfter: new Date('1970-01-01T00:00:00.00Z'), + notBefore: new Date('1970-01-01T00:00:00.00Z'), }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -671,7 +1766,7 @@ const request: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest = { fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceClusterTrustBundle(request); +const data = await apiInstance.replaceNamespacedPodCertificateRequestStatus(request); console.log('API called successfully. Returned data:', data); ``` @@ -680,8 +1775,9 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha1ClusterTrustBundle**| | - **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **body** | **V1alpha1PodCertificateRequest**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -690,7 +1786,7 @@ Name | Type | Description | Notes ### Return type -**V1alpha1ClusterTrustBundle** +**V1alpha1PodCertificateRequest** ### Authorization diff --git a/src/gen/CoreV1Api.md b/src/gen/CoreV1Api.md index c2a4158199..9f97db2967 100644 --- a/src/gen/CoreV1Api.md +++ b/src/gen/CoreV1Api.md @@ -4503,6 +4503,12 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -4683,6 +4689,17 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -4816,6 +4833,12 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -4996,6 +5019,17 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -5105,6 +5139,7 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -5132,6 +5167,12 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -5312,6 +5353,17 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -5846,6 +5898,14 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -6129,6 +6189,16 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -6926,6 +6996,12 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7106,6 +7182,17 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -7239,6 +7326,12 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7419,6 +7512,17 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -7528,6 +7632,7 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -7555,6 +7660,12 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7735,6 +7846,17 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -8269,6 +8391,14 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -8776,6 +8906,12 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -8956,6 +9092,17 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -9089,6 +9236,12 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -9269,6 +9422,17 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -9378,6 +9542,7 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -9405,6 +9570,12 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -9585,6 +9756,17 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -10119,6 +10301,14 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -22339,6 +22529,12 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -22519,6 +22715,17 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -22652,6 +22859,12 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -22832,6 +23045,17 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -22941,6 +23165,7 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -22968,6 +23193,12 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -23148,6 +23379,17 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -23682,6 +23924,14 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -23965,6 +24215,16 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -24459,6 +24719,12 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -24639,6 +24905,17 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -24772,6 +25049,12 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -24952,6 +25235,17 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -25061,6 +25355,7 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -25088,6 +25383,12 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -25268,6 +25569,17 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -25802,6 +26114,14 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -26085,6 +26405,16 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -26579,6 +26909,12 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -26759,6 +27095,17 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -26892,6 +27239,12 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -27072,6 +27425,17 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -27181,6 +27545,7 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -27208,6 +27573,12 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -27388,6 +27759,17 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -27922,6 +28304,14 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -28205,6 +28595,16 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -28699,6 +29099,12 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -28879,6 +29285,17 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -29012,6 +29429,12 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -29192,6 +29615,17 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -29301,6 +29735,7 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -29328,6 +29763,12 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -29508,6 +29949,17 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -30042,6 +30494,14 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -30325,6 +30785,16 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -30862,6 +31332,12 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -31042,6 +31518,17 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -31175,6 +31662,12 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -31355,6 +31848,17 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -31464,6 +31968,7 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -31491,6 +31996,12 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -31671,6 +32182,17 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -32205,6 +32727,14 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -32714,6 +33244,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -32894,6 +33430,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -33027,6 +33574,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -33207,6 +33760,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -33316,6 +33880,7 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -33343,6 +33908,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -33523,6 +34094,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -34057,6 +34639,14 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -34708,6 +35298,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -34888,6 +35484,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -35021,6 +35628,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -35201,6 +35814,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -35310,6 +35934,7 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -35337,6 +35962,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -35517,6 +36148,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -36051,6 +36693,14 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { diff --git a/src/gen/ResourceV1Api.md b/src/gen/ResourceV1Api.md new file mode 100644 index 0000000000..65c694ad1e --- /dev/null +++ b/src/gen/ResourceV1Api.md @@ -0,0 +1,4238 @@ +# .ResourceV1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createDeviceClass**](ResourceV1Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1/deviceclasses | +[**createNamespacedResourceClaim**](ResourceV1Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | +[**createNamespacedResourceClaimTemplate**](ResourceV1Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | +[**createResourceSlice**](ResourceV1Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1/resourceslices | +[**deleteCollectionDeviceClass**](ResourceV1Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses | +[**deleteCollectionNamespacedResourceClaim**](ResourceV1Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | +[**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | +[**deleteCollectionResourceSlice**](ResourceV1Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices | +[**deleteDeviceClass**](ResourceV1Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**deleteNamespacedResourceClaim**](ResourceV1Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | +[**deleteNamespacedResourceClaimTemplate**](ResourceV1Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**deleteResourceSlice**](ResourceV1Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices/{name} | +[**getAPIResources**](ResourceV1Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1/ | +[**listDeviceClass**](ResourceV1Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1/deviceclasses | +[**listNamespacedResourceClaim**](ResourceV1Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | +[**listNamespacedResourceClaimTemplate**](ResourceV1Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | +[**listResourceClaimForAllNamespaces**](ResourceV1Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaims | +[**listResourceClaimTemplateForAllNamespaces**](ResourceV1Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaimtemplates | +[**listResourceSlice**](ResourceV1Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1/resourceslices | +[**patchDeviceClass**](ResourceV1Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**patchNamespacedResourceClaim**](ResourceV1Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | +[**patchNamespacedResourceClaimStatus**](ResourceV1Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | +[**patchNamespacedResourceClaimTemplate**](ResourceV1Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**patchResourceSlice**](ResourceV1Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1/resourceslices/{name} | +[**readDeviceClass**](ResourceV1Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**readNamespacedResourceClaim**](ResourceV1Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | +[**readNamespacedResourceClaimStatus**](ResourceV1Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | +[**readNamespacedResourceClaimTemplate**](ResourceV1Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**readResourceSlice**](ResourceV1Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1/resourceslices/{name} | +[**replaceDeviceClass**](ResourceV1Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**replaceNamespacedResourceClaim**](ResourceV1Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | +[**replaceNamespacedResourceClaimStatus**](ResourceV1Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | +[**replaceNamespacedResourceClaimTemplate**](ResourceV1Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**replaceResourceSlice**](ResourceV1Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1/resourceslices/{name} | + + +# **createDeviceClass** +> V1DeviceClass createDeviceClass(body) + +create a DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiCreateDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiCreateDeviceClassRequest = { + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + }, + ], + extendedResourceName: "extendedResourceName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeviceClass**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createNamespacedResourceClaim** +> ResourceV1ResourceClaim createNamespacedResourceClaim(body) + +create a ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiCreateNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiCreateNamespacedResourceClaimRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + status: { + allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + source: "source_example", + }, + ], + results: [ + { + adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, + device: "device_example", + driver: "driver_example", + pool: "pool_example", + request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + }, + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + }, + devices: [ + { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + data: {}, + device: "device_example", + driver: "driver_example", + networkData: { + hardwareAddress: "hardwareAddress_example", + interfaceName: "interfaceName_example", + ips: [ + "ips_example", + ], + }, + pool: "pool_example", + shareID: "shareID_example", + }, + ], + reservedFor: [ + { + apiGroup: "apiGroup_example", + name: "name_example", + resource: "resource_example", + uid: "uid_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **ResourceV1ResourceClaim**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate createNamespacedResourceClaimTemplate(body) + +create a ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiCreateNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiCreateNamespacedResourceClaimTemplateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ResourceClaimTemplate**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createResourceSlice** +> V1ResourceSlice createResourceSlice(body) + +create a ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiCreateResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiCreateResourceSliceRequest = { + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + allNodes: true, + devices: [ + { + allNodes: true, + allowMultipleAllocations: true, + attributes: { + "key": { + bool: true, + _int: 1, + string: "string_example", + version: "version_example", + }, + }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, + capacity: { + "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, + value: "value_example", + }, + }, + consumesCounters: [ + { + counterSet: "counterSet_example", + counters: { + "key": { + value: "value_example", + }, + }, + }, + ], + name: "name_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + taints: [ + { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", + }, + ], + }, + ], + driver: "driver_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + perDeviceNodeSelection: true, + pool: { + generation: 1, + name: "name_example", + resourceSliceCount: 1, + }, + sharedCounters: [ + { + counters: { + "key": { + value: "value_example", + }, + }, + name: "name_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ResourceSlice**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionDeviceClass** +> V1Status deleteCollectionDeviceClass() + +delete collection of DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteCollectionDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteCollectionDeviceClassRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionNamespacedResourceClaim** +> V1Status deleteCollectionNamespacedResourceClaim() + +delete collection of ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteCollectionNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteCollectionNamespacedResourceClaimRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionNamespacedResourceClaimTemplate** +> V1Status deleteCollectionNamespacedResourceClaimTemplate() + +delete collection of ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionResourceSlice** +> V1Status deleteCollectionResourceSlice() + +delete collection of ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteCollectionResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteCollectionResourceSliceRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteDeviceClass** +> V1DeviceClass deleteDeviceClass() + +delete a DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteNamespacedResourceClaim** +> ResourceV1ResourceClaim deleteNamespacedResourceClaim() + +delete a ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate deleteNamespacedResourceClaimTemplate() + +delete a ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteResourceSlice** +> V1ResourceSlice deleteResourceSlice() + +delete a ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **getAPIResources** +> V1APIResourceList getAPIResources() + +get available resources + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request = {}; + +const data = await apiInstance.getAPIResources(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**V1APIResourceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listDeviceClass** +> V1DeviceClassList listDeviceClass() + +list or watch objects of kind DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListDeviceClassRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClassList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedResourceClaim** +> V1ResourceClaimList listNamespacedResourceClaim() + +list or watch objects of kind ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListNamespacedResourceClaimRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplateList listNamespacedResourceClaimTemplate() + +list or watch objects of kind ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListNamespacedResourceClaimTemplateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplateList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listResourceClaimForAllNamespaces** +> V1ResourceClaimList listResourceClaimForAllNamespaces() + +list or watch objects of kind ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListResourceClaimForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListResourceClaimForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listResourceClaimForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listResourceClaimTemplateForAllNamespaces** +> V1ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces() + +list or watch objects of kind ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListResourceClaimTemplateForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListResourceClaimTemplateForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listResourceClaimTemplateForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplateList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listResourceSlice** +> V1ResourceSliceList listResourceSlice() + +list or watch objects of kind ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListResourceSliceRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSliceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchDeviceClass** +> V1DeviceClass patchDeviceClass(body) + +partially update the specified DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedResourceClaim** +> ResourceV1ResourceClaim patchNamespacedResourceClaim(body) + +partially update the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim patchNamespacedResourceClaimStatus(body) + +partially update status of the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchNamespacedResourceClaimStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchNamespacedResourceClaimStatusRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedResourceClaimStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate patchNamespacedResourceClaimTemplate(body) + +partially update the specified ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchResourceSlice** +> V1ResourceSlice patchResourceSlice(body) + +partially update the specified ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readDeviceClass** +> V1DeviceClass readDeviceClass() + +read the specified DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedResourceClaim** +> ResourceV1ResourceClaim readNamespacedResourceClaim() + +read the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim readNamespacedResourceClaimStatus() + +read status of the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadNamespacedResourceClaimStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadNamespacedResourceClaimStatusRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedResourceClaimStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate readNamespacedResourceClaimTemplate() + +read the specified ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readResourceSlice** +> V1ResourceSlice readResourceSlice() + +read the specified ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceDeviceClass** +> V1DeviceClass replaceDeviceClass(body) + +replace the specified DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + }, + ], + extendedResourceName: "extendedResourceName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeviceClass**| | + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedResourceClaim** +> ResourceV1ResourceClaim replaceNamespacedResourceClaim(body) + +replace the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + status: { + allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + source: "source_example", + }, + ], + results: [ + { + adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, + device: "device_example", + driver: "driver_example", + pool: "pool_example", + request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + }, + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + }, + devices: [ + { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + data: {}, + device: "device_example", + driver: "driver_example", + networkData: { + hardwareAddress: "hardwareAddress_example", + interfaceName: "interfaceName_example", + ips: [ + "ips_example", + ], + }, + pool: "pool_example", + shareID: "shareID_example", + }, + ], + reservedFor: [ + { + apiGroup: "apiGroup_example", + name: "name_example", + resource: "resource_example", + uid: "uid_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **ResourceV1ResourceClaim**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim replaceNamespacedResourceClaimStatus(body) + +replace status of the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceNamespacedResourceClaimStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceNamespacedResourceClaimStatusRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + status: { + allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + source: "source_example", + }, + ], + results: [ + { + adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, + device: "device_example", + driver: "driver_example", + pool: "pool_example", + request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + }, + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + }, + devices: [ + { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + data: {}, + device: "device_example", + driver: "driver_example", + networkData: { + hardwareAddress: "hardwareAddress_example", + interfaceName: "interfaceName_example", + ips: [ + "ips_example", + ], + }, + pool: "pool_example", + shareID: "shareID_example", + }, + ], + reservedFor: [ + { + apiGroup: "apiGroup_example", + name: "name_example", + resource: "resource_example", + uid: "uid_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedResourceClaimStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **ResourceV1ResourceClaim**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(body) + +replace the specified ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ResourceClaimTemplate**| | + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceResourceSlice** +> V1ResourceSlice replaceResourceSlice(body) + +replace the specified ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + allNodes: true, + devices: [ + { + allNodes: true, + allowMultipleAllocations: true, + attributes: { + "key": { + bool: true, + _int: 1, + string: "string_example", + version: "version_example", + }, + }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, + capacity: { + "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, + value: "value_example", + }, + }, + consumesCounters: [ + { + counterSet: "counterSet_example", + counters: { + "key": { + value: "value_example", + }, + }, + }, + ], + name: "name_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + taints: [ + { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", + }, + ], + }, + ], + driver: "driver_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + perDeviceNodeSelection: true, + pool: { + generation: 1, + name: "name_example", + resourceSliceCount: 1, + }, + sharedCounters: [ + { + counters: { + "key": { + value: "value_example", + }, + }, + name: "name_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ResourceSlice**| | + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + + diff --git a/src/gen/ResourceV1alpha3Api.md b/src/gen/ResourceV1alpha3Api.md index f8876159db..9412914796 100644 --- a/src/gen/ResourceV1alpha3Api.md +++ b/src/gen/ResourceV1alpha3Api.md @@ -4,179 +4,16 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createDeviceClass**](ResourceV1alpha3Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1alpha3/deviceclasses | [**createDeviceTaintRule**](ResourceV1alpha3Api.md#createDeviceTaintRule) | **POST** /apis/resource.k8s.io/v1alpha3/devicetaintrules | -[**createNamespacedResourceClaim**](ResourceV1alpha3Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | -[**createNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | -[**createResourceSlice**](ResourceV1alpha3Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1alpha3/resourceslices | -[**deleteCollectionDeviceClass**](ResourceV1alpha3Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses | [**deleteCollectionDeviceTaintRule**](ResourceV1alpha3Api.md#deleteCollectionDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules | -[**deleteCollectionNamespacedResourceClaim**](ResourceV1alpha3Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | -[**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | -[**deleteCollectionResourceSlice**](ResourceV1alpha3Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices | -[**deleteDeviceClass**](ResourceV1alpha3Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | [**deleteDeviceTaintRule**](ResourceV1alpha3Api.md#deleteDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | -[**deleteNamespacedResourceClaim**](ResourceV1alpha3Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -[**deleteNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**deleteResourceSlice**](ResourceV1alpha3Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | [**getAPIResources**](ResourceV1alpha3Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha3/ | -[**listDeviceClass**](ResourceV1alpha3Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses | [**listDeviceTaintRule**](ResourceV1alpha3Api.md#listDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules | -[**listNamespacedResourceClaim**](ResourceV1alpha3Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | -[**listNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | -[**listResourceClaimForAllNamespaces**](ResourceV1alpha3Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaims | -[**listResourceClaimTemplateForAllNamespaces**](ResourceV1alpha3Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaimtemplates | -[**listResourceSlice**](ResourceV1alpha3Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices | -[**patchDeviceClass**](ResourceV1alpha3Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | [**patchDeviceTaintRule**](ResourceV1alpha3Api.md#patchDeviceTaintRule) | **PATCH** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | -[**patchNamespacedResourceClaim**](ResourceV1alpha3Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -[**patchNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | -[**patchNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**patchResourceSlice**](ResourceV1alpha3Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | -[**readDeviceClass**](ResourceV1alpha3Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | [**readDeviceTaintRule**](ResourceV1alpha3Api.md#readDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | -[**readNamespacedResourceClaim**](ResourceV1alpha3Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -[**readNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | -[**readNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**readResourceSlice**](ResourceV1alpha3Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | -[**replaceDeviceClass**](ResourceV1alpha3Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | [**replaceDeviceTaintRule**](ResourceV1alpha3Api.md#replaceDeviceTaintRule) | **PUT** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | -[**replaceNamespacedResourceClaim**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -[**replaceNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | -[**replaceNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**replaceResourceSlice**](ResourceV1alpha3Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | -# **createDeviceClass** -> V1alpha3DeviceClass createDeviceClass(body) - -create a DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiCreateDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiCreateDeviceClassRequest = { - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - }, - ], - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.createDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3DeviceClass**| | - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - # **createDeviceTaintRule** > V1alpha3DeviceTaintRule createDeviceTaintRule(body) @@ -311,247 +148,69 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **createNamespacedResourceClaim** -> V1alpha3ResourceClaim createNamespacedResourceClaim(body) +# **deleteCollectionDeviceTaintRule** +> V1Status deleteCollectionDeviceTaintRule() -create a ResourceClaim +delete collection of DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest } from ''; +import type { ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, body: { apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], + orphanDependents: true, + preconditions: { resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", uid: "uid_example", }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - firstAvailable: [ - { - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - }, - status: { - allocation: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - source: "source_example", - }, - ], - results: [ - { - adminAccess: true, - device: "device_example", - driver: "driver_example", - pool: "pool_example", - request: "request_example", - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - }, - devices: [ - { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - data: {}, - device: "device_example", - driver: "driver_example", - networkData: { - hardwareAddress: "hardwareAddress_example", - interfaceName: "interfaceName_example", - ips: [ - "ips_example", - ], - }, - pool: "pool_example", - }, - ], - reservedFor: [ - { - apiGroup: "apiGroup_example", - name: "name_example", - resource: "resource_example", - uid: "uid_example", - }, - ], - }, + propagationPolicy: "propagationPolicy_example", }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createNamespacedResourceClaim(request); +const data = await apiInstance.deleteCollectionDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -560,17 +219,26 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaim**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **body** | **V1DeleteOptions**| | **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined ### Return type -**V1alpha3ResourceClaim** +**V1Status** ### Authorization @@ -586,204 +254,59 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **createNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate createNamespacedResourceClaimTemplate(body) +# **deleteDeviceTaintRule** +> V1alpha3DeviceTaintRule deleteDeviceTaintRule() -create a ResourceClaimTemplate +delete a DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest } from ''; +import type { ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest = { + // name of the DeviceTaintRule + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", body: { apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], + orphanDependents: true, + preconditions: { resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", uid: "uid_example", }, - spec: { - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - firstAvailable: [ - { - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - }, - }, + propagationPolicy: "propagationPolicy_example", }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createNamespacedResourceClaimTemplate(request); +const data = await apiInstance.deleteDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -792,17 +315,19 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaimTemplate**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined ### Return type -**V1alpha3ResourceClaimTemplate** +**V1alpha3DeviceTaintRule** ### Authorization @@ -818,211 +343,39 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **createResourceSlice** -> V1alpha3ResourceSlice createResourceSlice(body) +# **getAPIResources** +> V1APIResourceList getAPIResources() -create a ResourceSlice +get available resources ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiCreateResourceSliceRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiCreateResourceSliceRequest = { - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - allNodes: true, - devices: [ - { - basic: { - allNodes: true, - attributes: { - "key": { - bool: true, - _int: 1, - string: "string_example", - version: "version_example", - }, - }, - capacity: { - "key": "key_example", - }, - consumesCounters: [ - { - counterSet: "counterSet_example", - counters: { - "key": { - value: "value_example", - }, - }, - }, - ], - nodeName: "nodeName_example", - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - taints: [ - { - effect: "effect_example", - key: "key_example", - timeAdded: new Date('1970-01-01T00:00:00.00Z'), - value: "value_example", - }, - ], - }, - name: "name_example", - }, - ], - driver: "driver_example", - nodeName: "nodeName_example", - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - perDeviceNodeSelection: true, - pool: { - generation: 1, - name: "name_example", - resourceSliceCount: 1, - }, - sharedCounters: [ - { - counters: { - "key": { - value: "value_example", - }, - }, - name: "name_example", - }, - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; +const request = {}; -const data = await apiInstance.createResourceSlice(request); +const data = await apiInstance.getAPIResources(request); console.log('API called successfully. Returned data:', data); ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceSlice**| | - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined +This endpoint does not need any parameter. ### Return type -**V1alpha3ResourceSlice** +**V1APIResourceList** ### Authorization @@ -1038,2974 +391,51 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionDeviceClass** -> V1Status deleteCollectionDeviceClass() +# **listDeviceTaintRule** +> V1alpha3DeviceTaintRuleList listDeviceTaintRule() -delete collection of DeviceClass +list or watch objects of kind DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest } from ''; +import type { ResourceV1alpha3ApiListDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest = { +const request: ResourceV1alpha3ApiListDeviceTaintRuleRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteCollectionDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - - -### Return type - -**V1Status** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteCollectionDeviceTaintRule** -> V1Status deleteCollectionDeviceTaintRule() - -delete collection of DeviceTaintRule - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteCollectionDeviceTaintRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - - -### Return type - -**V1Status** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteCollectionNamespacedResourceClaim** -> V1Status deleteCollectionNamespacedResourceClaim() - -delete collection of ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteCollectionNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - - -### Return type - -**V1Status** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteCollectionNamespacedResourceClaimTemplate** -> V1Status deleteCollectionNamespacedResourceClaimTemplate() - -delete collection of ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteCollectionNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - - -### Return type - -**V1Status** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteCollectionResourceSlice** -> V1Status deleteCollectionResourceSlice() - -delete collection of ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteCollectionResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - - -### Return type - -**V1Status** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteDeviceClass** -> V1alpha3DeviceClass deleteDeviceClass() - -delete a DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteDeviceClassRequest = { - // name of the DeviceClass - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the DeviceClass | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteDeviceTaintRule** -> V1alpha3DeviceTaintRule deleteDeviceTaintRule() - -delete a DeviceTaintRule - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest = { - // name of the DeviceTaintRule - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteDeviceTaintRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceTaintRule** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteNamespacedResourceClaim** -> V1alpha3ResourceClaim deleteNamespacedResourceClaim() - -delete a ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate deleteNamespacedResourceClaimTemplate() - -delete a ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest = { - // name of the ResourceClaimTemplate - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplate** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteResourceSlice** -> V1alpha3ResourceSlice deleteResourceSlice() - -delete a ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteResourceSliceRequest = { - // name of the ResourceSlice - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ResourceSlice | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceSlice** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **getAPIResources** -> V1APIResourceList getAPIResources() - -get available resources - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request = {}; - -const data = await apiInstance.getAPIResources(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters -This endpoint does not need any parameter. - - -### Return type - -**V1APIResourceList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listDeviceClass** -> V1alpha3DeviceClassList listDeviceClass() - -list or watch objects of kind DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListDeviceClassRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClassList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listDeviceTaintRule** -> V1alpha3DeviceTaintRuleList listDeviceTaintRule() - -list or watch objects of kind DeviceTaintRule - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListDeviceTaintRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListDeviceTaintRuleRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listDeviceTaintRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceTaintRuleList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listNamespacedResourceClaim** -> V1alpha3ResourceClaimList listNamespacedResourceClaim() - -list or watch objects of kind ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListNamespacedResourceClaimRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplateList listNamespacedResourceClaimTemplate() - -list or watch objects of kind ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplateList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listResourceClaimForAllNamespaces** -> V1alpha3ResourceClaimList listResourceClaimForAllNamespaces() - -list or watch objects of kind ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest = { - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listResourceClaimForAllNamespaces(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listResourceClaimTemplateForAllNamespaces** -> V1alpha3ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces() - -list or watch objects of kind ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest = { - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listResourceClaimTemplateForAllNamespaces(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplateList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listResourceSlice** -> V1alpha3ResourceSliceList listResourceSlice() - -list or watch objects of kind ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListResourceSliceRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceSliceList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchDeviceClass** -> V1alpha3DeviceClass patchDeviceClass(body) - -partially update the specified DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchDeviceClassRequest = { - // name of the DeviceClass - name: "name_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the DeviceClass | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchDeviceTaintRule** -> V1alpha3DeviceTaintRule patchDeviceTaintRule(body) - -partially update the specified DeviceTaintRule - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchDeviceTaintRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchDeviceTaintRuleRequest = { - // name of the DeviceTaintRule - name: "name_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchDeviceTaintRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceTaintRule** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchNamespacedResourceClaim** -> V1alpha3ResourceClaim patchNamespacedResourceClaim(body) - -partially update the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchNamespacedResourceClaimStatus** -> V1alpha3ResourceClaim patchNamespacedResourceClaimStatus(body) - -partially update status of the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchNamespacedResourceClaimStatus(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate patchNamespacedResourceClaimTemplate(body) - -partially update the specified ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest = { - // name of the ResourceClaimTemplate - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplate** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchResourceSlice** -> V1alpha3ResourceSlice patchResourceSlice(body) - -partially update the specified ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchResourceSliceRequest = { - // name of the ResourceSlice - name: "name_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ResourceSlice | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceSlice** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readDeviceClass** -> V1alpha3DeviceClass readDeviceClass() - -read the specified DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadDeviceClassRequest = { - // name of the DeviceClass - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the DeviceClass | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readDeviceTaintRule** -> V1alpha3DeviceTaintRule readDeviceTaintRule() - -read the specified DeviceTaintRule - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadDeviceTaintRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadDeviceTaintRuleRequest = { - // name of the DeviceTaintRule - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readDeviceTaintRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceTaintRule** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readNamespacedResourceClaim** -> V1alpha3ResourceClaim readNamespacedResourceClaim() - -read the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadNamespacedResourceClaimRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readNamespacedResourceClaimStatus** -> V1alpha3ResourceClaim readNamespacedResourceClaimStatus() - -read status of the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readNamespacedResourceClaimStatus(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate readNamespacedResourceClaimTemplate() - -read the specified ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest = { - // name of the ResourceClaimTemplate - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplate** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readResourceSlice** -> V1alpha3ResourceSlice readResourceSlice() - -read the specified ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadResourceSliceRequest = { - // name of the ResourceSlice - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ResourceSlice | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceSlice** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceDeviceClass** -> V1alpha3DeviceClass replaceDeviceClass(body) - -replace the specified DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReplaceDeviceClassRequest = { - // name of the DeviceClass - name: "name_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - }, - ], - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.replaceDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3DeviceClass**| | - **name** | [**string**] | name of the DeviceClass | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceDeviceTaintRule** -> V1alpha3DeviceTaintRule replaceDeviceTaintRule(body) - -replace the specified DeviceTaintRule - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest = { - // name of the DeviceTaintRule - name: "name_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - deviceSelector: { - device: "device_example", - deviceClassName: "deviceClassName_example", - driver: "driver_example", - pool: "pool_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - }, - taint: { - effect: "effect_example", - key: "key_example", - timeAdded: new Date('1970-01-01T00:00:00.00Z'), - value: "value_example", - }, - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.replaceDeviceTaintRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3DeviceTaintRule**| | - **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceTaintRule** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceNamespacedResourceClaim** -> V1alpha3ResourceClaim replaceNamespacedResourceClaim(body) - -replace the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReplaceNamespacedResourceClaimRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - firstAvailable: [ - { - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - }, - status: { - allocation: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - source: "source_example", - }, - ], - results: [ - { - adminAccess: true, - device: "device_example", - driver: "driver_example", - pool: "pool_example", - request: "request_example", - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - }, - devices: [ - { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - data: {}, - device: "device_example", - driver: "driver_example", - networkData: { - hardwareAddress: "hardwareAddress_example", - interfaceName: "interfaceName_example", - ips: [ - "ips_example", - ], - }, - pool: "pool_example", - }, - ], - reservedFor: [ - { - apiGroup: "apiGroup_example", - name: "name_example", - resource: "resource_example", - uid: "uid_example", - }, - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, }; -const data = await apiInstance.replaceNamespacedResourceClaim(request); +const data = await apiInstance.listDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -4014,18 +444,22 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaim**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined ### Return type -**V1alpha3ResourceClaim** +**V1alpha3DeviceTaintRuleList** ### Authorization @@ -4034,261 +468,50 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceNamespacedResourceClaimStatus** -> V1alpha3ResourceClaim replaceNamespacedResourceClaimStatus(body) +# **patchDeviceTaintRule** +> V1alpha3DeviceTaintRule patchDeviceTaintRule(body) -replace status of the specified ResourceClaim +partially update the specified DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceNamespacedResourceClaimStatusRequest } from ''; +import type { ResourceV1alpha3ApiPatchDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiReplaceNamespacedResourceClaimStatusRequest = { - // name of the ResourceClaim +const request: ResourceV1alpha3ApiPatchDeviceTaintRuleRequest = { + // name of the DeviceTaintRule name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - firstAvailable: [ - { - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - }, - status: { - allocation: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - source: "source_example", - }, - ], - results: [ - { - adminAccess: true, - device: "device_example", - driver: "driver_example", - pool: "pool_example", - request: "request_example", - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - }, - devices: [ - { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - data: {}, - device: "device_example", - driver: "driver_example", - networkData: { - hardwareAddress: "hardwareAddress_example", - interfaceName: "interfaceName_example", - ips: [ - "ips_example", - ], - }, - pool: "pool_example", - }, - ], - reservedFor: [ - { - apiGroup: "apiGroup_example", - name: "name_example", - resource: "resource_example", - uid: "uid_example", - }, - ], - }, - }, + body: {}, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) fieldManager: "fieldManager_example", // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, }; -const data = await apiInstance.replaceNamespacedResourceClaimStatus(request); +const data = await apiInstance.patchDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -4297,18 +520,18 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaim**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **body** | **any**| | + **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined ### Return type -**V1alpha3ResourceClaim** +**V1alpha3DeviceTaintRule** ### Authorization @@ -4316,7 +539,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor @@ -4329,200 +552,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(body) +# **readDeviceTaintRule** +> V1alpha3DeviceTaintRule readDeviceTaintRule() -replace the specified ResourceClaimTemplate +read the specified DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest } from ''; +import type { ResourceV1alpha3ApiReadDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest = { - // name of the ResourceClaimTemplate +const request: ResourceV1alpha3ApiReadDeviceTaintRuleRequest = { + // name of the DeviceTaintRule name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - firstAvailable: [ - { - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - }, - }, - }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceNamespacedResourceClaimTemplate(request); +const data = await apiInstance.readDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -4531,18 +583,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaimTemplate**| | - **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined ### Return type -**V1alpha3ResourceClaimTemplate** +**V1alpha3DeviceTaintRule** ### Authorization @@ -4558,28 +605,27 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceResourceSlice** -> V1alpha3ResourceSlice replaceResourceSlice(body) +# **replaceDeviceTaintRule** +> V1alpha3DeviceTaintRule replaceDeviceTaintRule(body) -replace the specified ResourceSlice +replace the specified DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceResourceSliceRequest } from ''; +import type { ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiReplaceResourceSliceRequest = { - // name of the ResourceSlice +const request: ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest = { + // name of the DeviceTaintRule name: "name_example", body: { @@ -4628,111 +674,25 @@ const request: ResourceV1alpha3ApiReplaceResourceSliceRequest = { uid: "uid_example", }, spec: { - allNodes: true, - devices: [ - { - basic: { - allNodes: true, - attributes: { - "key": { - bool: true, - _int: 1, - string: "string_example", - version: "version_example", - }, - }, - capacity: { - "key": "key_example", - }, - consumesCounters: [ - { - counterSet: "counterSet_example", - counters: { - "key": { - value: "value_example", - }, - }, - }, - ], - nodeName: "nodeName_example", - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - taints: [ - { - effect: "effect_example", - key: "key_example", - timeAdded: new Date('1970-01-01T00:00:00.00Z'), - value: "value_example", - }, - ], - }, - name: "name_example", - }, - ], - driver: "driver_example", - nodeName: "nodeName_example", - nodeSelector: { - nodeSelectorTerms: [ + deviceSelector: { + device: "device_example", + deviceClassName: "deviceClassName_example", + driver: "driver_example", + pool: "pool_example", + selectors: [ { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], + cel: { + expression: "expression_example", + }, }, ], }, - perDeviceNodeSelection: true, - pool: { - generation: 1, - name: "name_example", - resourceSliceCount: 1, + taint: { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", }, - sharedCounters: [ - { - counters: { - "key": { - value: "value_example", - }, - }, - name: "name_example", - }, - ], }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -4745,7 +705,7 @@ const request: ResourceV1alpha3ApiReplaceResourceSliceRequest = { fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceResourceSlice(request); +const data = await apiInstance.replaceDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -4754,8 +714,8 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceSlice**| | - **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **body** | **V1alpha3DeviceTaintRule**| | + **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -4764,7 +724,7 @@ Name | Type | Description | Notes ### Return type -**V1alpha3ResourceSlice** +**V1alpha3DeviceTaintRule** ### Authorization diff --git a/src/gen/ResourceV1beta1Api.md b/src/gen/ResourceV1beta1Api.md index b871ce574b..381e04c42c 100644 --- a/src/gen/ResourceV1beta1Api.md +++ b/src/gen/ResourceV1beta1Api.md @@ -111,6 +111,7 @@ const request: ResourceV1beta1ApiCreateDeviceClassRequest = { }, }, ], + extendedResourceName: "extendedResourceName_example", selectors: [ { cel: { @@ -249,6 +250,7 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -259,11 +261,21 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -308,6 +320,7 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -324,10 +337,20 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", tolerations: [ { effect: "effect_example", @@ -388,6 +411,7 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -573,6 +597,7 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest = ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -583,11 +608,21 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest = { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -751,6 +786,7 @@ const request: ResourceV1beta1ApiCreateResourceSliceRequest = { { basic: { allNodes: true, + allowMultipleAllocations: true, attributes: { "key": { bool: true, @@ -759,8 +795,26 @@ const request: ResourceV1beta1ApiCreateResourceSliceRequest = { version: "version_example", }, }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, capacity: { "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, value: "value_example", }, }, @@ -3015,6 +3069,7 @@ const request: ResourceV1beta1ApiReplaceDeviceClassRequest = { }, }, ], + extendedResourceName: "extendedResourceName_example", selectors: [ { cel: { @@ -3155,6 +3210,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3165,11 +3221,21 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -3214,6 +3280,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -3230,10 +3297,20 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", tolerations: [ { effect: "effect_example", @@ -3294,6 +3371,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -3438,6 +3516,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3448,11 +3527,21 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -3497,6 +3586,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -3513,10 +3603,20 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", tolerations: [ { effect: "effect_example", @@ -3577,6 +3677,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -3764,6 +3865,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest = ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3774,11 +3876,21 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest = { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -3944,6 +4056,7 @@ const request: ResourceV1beta1ApiReplaceResourceSliceRequest = { { basic: { allNodes: true, + allowMultipleAllocations: true, attributes: { "key": { bool: true, @@ -3952,8 +4065,26 @@ const request: ResourceV1beta1ApiReplaceResourceSliceRequest = { version: "version_example", }, }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, capacity: { "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, value: "value_example", }, }, diff --git a/src/gen/ResourceV1beta2Api.md b/src/gen/ResourceV1beta2Api.md index e2dee5cdd7..c6fec541f3 100644 --- a/src/gen/ResourceV1beta2Api.md +++ b/src/gen/ResourceV1beta2Api.md @@ -111,6 +111,7 @@ const request: ResourceV1beta2ApiCreateDeviceClassRequest = { }, }, ], + extendedResourceName: "extendedResourceName_example", selectors: [ { cel: { @@ -249,6 +250,7 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -260,6 +262,11 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { exactly: { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", selectors: [ @@ -282,6 +289,11 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -310,6 +322,7 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -326,10 +339,20 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", tolerations: [ { effect: "effect_example", @@ -390,6 +413,7 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -575,6 +599,7 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest = ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -586,6 +611,11 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest = exactly: { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", selectors: [ @@ -608,6 +638,11 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest = firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -754,6 +789,7 @@ const request: ResourceV1beta2ApiCreateResourceSliceRequest = { devices: [ { allNodes: true, + allowMultipleAllocations: true, attributes: { "key": { bool: true, @@ -762,8 +798,26 @@ const request: ResourceV1beta2ApiCreateResourceSliceRequest = { version: "version_example", }, }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, capacity: { "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, value: "value_example", }, }, @@ -3017,6 +3071,7 @@ const request: ResourceV1beta2ApiReplaceDeviceClassRequest = { }, }, ], + extendedResourceName: "extendedResourceName_example", selectors: [ { cel: { @@ -3157,6 +3212,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3168,6 +3224,11 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { exactly: { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", selectors: [ @@ -3190,6 +3251,11 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -3218,6 +3284,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -3234,10 +3301,20 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", tolerations: [ { effect: "effect_example", @@ -3298,6 +3375,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -3442,6 +3520,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3453,6 +3532,11 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { exactly: { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", selectors: [ @@ -3475,6 +3559,11 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -3503,6 +3592,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -3519,10 +3609,20 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", tolerations: [ { effect: "effect_example", @@ -3583,6 +3683,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -3770,6 +3871,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest = ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3781,6 +3883,11 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest = exactly: { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", selectors: [ @@ -3803,6 +3910,11 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest = firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -3951,6 +4063,7 @@ const request: ResourceV1beta2ApiReplaceResourceSliceRequest = { devices: [ { allNodes: true, + allowMultipleAllocations: true, attributes: { "key": { bool: true, @@ -3959,8 +4072,26 @@ const request: ResourceV1beta2ApiReplaceResourceSliceRequest = { version: "version_example", }, }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, capacity: { "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, value: "value_example", }, }, diff --git a/src/gen/StorageV1Api.md b/src/gen/StorageV1Api.md index 7f27fda802..83ffbcaa60 100644 --- a/src/gen/StorageV1Api.md +++ b/src/gen/StorageV1Api.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**createNamespacedCSIStorageCapacity**](StorageV1Api.md#createNamespacedCSIStorageCapacity) | **POST** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | [**createStorageClass**](StorageV1Api.md#createStorageClass) | **POST** /apis/storage.k8s.io/v1/storageclasses | [**createVolumeAttachment**](StorageV1Api.md#createVolumeAttachment) | **POST** /apis/storage.k8s.io/v1/volumeattachments | +[**createVolumeAttributesClass**](StorageV1Api.md#createVolumeAttributesClass) | **POST** /apis/storage.k8s.io/v1/volumeattributesclasses | [**deleteCSIDriver**](StorageV1Api.md#deleteCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers/{name} | [**deleteCSINode**](StorageV1Api.md#deleteCSINode) | **DELETE** /apis/storage.k8s.io/v1/csinodes/{name} | [**deleteCollectionCSIDriver**](StorageV1Api.md#deleteCollectionCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers | @@ -16,9 +17,11 @@ Method | HTTP request | Description [**deleteCollectionNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteCollectionNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | [**deleteCollectionStorageClass**](StorageV1Api.md#deleteCollectionStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | [**deleteCollectionVolumeAttachment**](StorageV1Api.md#deleteCollectionVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments | +[**deleteCollectionVolumeAttributesClass**](StorageV1Api.md#deleteCollectionVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1/volumeattributesclasses | [**deleteNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**deleteStorageClass**](StorageV1Api.md#deleteStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | [**deleteVolumeAttachment**](StorageV1Api.md#deleteVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments/{name} | +[**deleteVolumeAttributesClass**](StorageV1Api.md#deleteVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**getAPIResources**](StorageV1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1/ | [**listCSIDriver**](StorageV1Api.md#listCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers | [**listCSINode**](StorageV1Api.md#listCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes | @@ -26,24 +29,28 @@ Method | HTTP request | Description [**listNamespacedCSIStorageCapacity**](StorageV1Api.md#listNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | [**listStorageClass**](StorageV1Api.md#listStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses | [**listVolumeAttachment**](StorageV1Api.md#listVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments | +[**listVolumeAttributesClass**](StorageV1Api.md#listVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses | [**patchCSIDriver**](StorageV1Api.md#patchCSIDriver) | **PATCH** /apis/storage.k8s.io/v1/csidrivers/{name} | [**patchCSINode**](StorageV1Api.md#patchCSINode) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name} | [**patchNamespacedCSIStorageCapacity**](StorageV1Api.md#patchNamespacedCSIStorageCapacity) | **PATCH** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**patchStorageClass**](StorageV1Api.md#patchStorageClass) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | [**patchVolumeAttachment**](StorageV1Api.md#patchVolumeAttachment) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name} | [**patchVolumeAttachmentStatus**](StorageV1Api.md#patchVolumeAttachmentStatus) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | +[**patchVolumeAttributesClass**](StorageV1Api.md#patchVolumeAttributesClass) | **PATCH** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**readCSIDriver**](StorageV1Api.md#readCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers/{name} | [**readCSINode**](StorageV1Api.md#readCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes/{name} | [**readNamespacedCSIStorageCapacity**](StorageV1Api.md#readNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**readStorageClass**](StorageV1Api.md#readStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | [**readVolumeAttachment**](StorageV1Api.md#readVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name} | [**readVolumeAttachmentStatus**](StorageV1Api.md#readVolumeAttachmentStatus) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | +[**readVolumeAttributesClass**](StorageV1Api.md#readVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**replaceCSIDriver**](StorageV1Api.md#replaceCSIDriver) | **PUT** /apis/storage.k8s.io/v1/csidrivers/{name} | [**replaceCSINode**](StorageV1Api.md#replaceCSINode) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name} | [**replaceNamespacedCSIStorageCapacity**](StorageV1Api.md#replaceNamespacedCSIStorageCapacity) | **PUT** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**replaceStorageClass**](StorageV1Api.md#replaceStorageClass) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | [**replaceVolumeAttachment**](StorageV1Api.md#replaceVolumeAttachment) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name} | [**replaceVolumeAttachmentStatus**](StorageV1Api.md#replaceVolumeAttachmentStatus) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | +[**replaceVolumeAttributesClass**](StorageV1Api.md#replaceVolumeAttributesClass) | **PUT** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | # **createCSIDriver** @@ -957,6 +964,123 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createVolumeAttributesClass** +> V1VolumeAttributesClass createVolumeAttributesClass(body) + +create a VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiCreateVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiCreateVolumeAttributesClassRequest = { + + body: { + apiVersion: "apiVersion_example", + driverName: "driverName_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + parameters: { + "key": "key_example", + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1VolumeAttributesClass**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -1657,6 +1781,116 @@ console.log('API called successfully. Returned data:', data); ``` +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionVolumeAttributesClass** +> V1Status deleteCollectionVolumeAttributesClass() + +delete collection of VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiDeleteCollectionVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiDeleteCollectionVolumeAttributesClassRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + ### Parameters Name | Type | Description | Notes @@ -1964,6 +2198,96 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteVolumeAttributesClass** +> V1VolumeAttributesClass deleteVolumeAttributesClass() + +delete a VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiDeleteVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiDeleteVolumeAttributesClassRequest = { + // name of the VolumeAttributesClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the VolumeAttributesClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -2275,21 +2599,106 @@ Name | Type | Description | Notes # **listNamespacedCSIStorageCapacity** > V1CSIStorageCapacityList listNamespacedCSIStorageCapacity() -list or watch objects of kind CSIStorageCapacity +list or watch objects of kind CSIStorageCapacity + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiListNamespacedCSIStorageCapacityRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiListNamespacedCSIStorageCapacityRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedCSIStorageCapacity(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1CSIStorageCapacityList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listStorageClass** +> V1StorageClassList listStorageClass() + +list or watch objects of kind StorageClass ### Example ```typescript import { createConfiguration, StorageV1Api } from ''; -import type { StorageV1ApiListNamespacedCSIStorageCapacityRequest } from ''; +import type { StorageV1ApiListStorageClassRequest } from ''; const configuration = createConfiguration(); const apiInstance = new StorageV1Api(configuration); -const request: StorageV1ApiListNamespacedCSIStorageCapacityRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: StorageV1ApiListStorageClassRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -2314,7 +2723,7 @@ const request: StorageV1ApiListNamespacedCSIStorageCapacityRequest = { watch: true, }; -const data = await apiInstance.listNamespacedCSIStorageCapacity(request); +const data = await apiInstance.listStorageClass(request); console.log('API called successfully. Returned data:', data); ``` @@ -2323,7 +2732,6 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined @@ -2339,7 +2747,7 @@ Name | Type | Description | Notes ### Return type -**V1CSIStorageCapacityList** +**V1StorageClassList** ### Authorization @@ -2359,22 +2767,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listStorageClass** -> V1StorageClassList listStorageClass() +# **listVolumeAttachment** +> V1VolumeAttachmentList listVolumeAttachment() -list or watch objects of kind StorageClass +list or watch objects of kind VolumeAttachment ### Example ```typescript import { createConfiguration, StorageV1Api } from ''; -import type { StorageV1ApiListStorageClassRequest } from ''; +import type { StorageV1ApiListVolumeAttachmentRequest } from ''; const configuration = createConfiguration(); const apiInstance = new StorageV1Api(configuration); -const request: StorageV1ApiListStorageClassRequest = { +const request: StorageV1ApiListVolumeAttachmentRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -2399,7 +2807,7 @@ const request: StorageV1ApiListStorageClassRequest = { watch: true, }; -const data = await apiInstance.listStorageClass(request); +const data = await apiInstance.listVolumeAttachment(request); console.log('API called successfully. Returned data:', data); ``` @@ -2423,7 +2831,7 @@ Name | Type | Description | Notes ### Return type -**V1StorageClassList** +**V1VolumeAttachmentList** ### Authorization @@ -2443,22 +2851,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listVolumeAttachment** -> V1VolumeAttachmentList listVolumeAttachment() +# **listVolumeAttributesClass** +> V1VolumeAttributesClassList listVolumeAttributesClass() -list or watch objects of kind VolumeAttachment +list or watch objects of kind VolumeAttributesClass ### Example ```typescript import { createConfiguration, StorageV1Api } from ''; -import type { StorageV1ApiListVolumeAttachmentRequest } from ''; +import type { StorageV1ApiListVolumeAttributesClassRequest } from ''; const configuration = createConfiguration(); const apiInstance = new StorageV1Api(configuration); -const request: StorageV1ApiListVolumeAttachmentRequest = { +const request: StorageV1ApiListVolumeAttributesClassRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -2483,7 +2891,7 @@ const request: StorageV1ApiListVolumeAttachmentRequest = { watch: true, }; -const data = await apiInstance.listVolumeAttachment(request); +const data = await apiInstance.listVolumeAttributesClass(request); console.log('API called successfully. Returned data:', data); ``` @@ -2507,7 +2915,7 @@ Name | Type | Description | Notes ### Return type -**V1VolumeAttachmentList** +**V1VolumeAttributesClassList** ### Authorization @@ -2959,6 +3367,79 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchVolumeAttributesClass** +> V1VolumeAttributesClass patchVolumeAttributesClass(body) + +partially update the specified VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiPatchVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiPatchVolumeAttributesClassRequest = { + // name of the VolumeAttributesClass + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the VolumeAttributesClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -3305,6 +3786,63 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readVolumeAttributesClass** +> V1VolumeAttributesClass readVolumeAttributesClass() + +read the specified VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiReadVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiReadVolumeAttributesClassRequest = { + // name of the VolumeAttributesClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the VolumeAttributesClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -4641,4 +5179,123 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) +# **replaceVolumeAttributesClass** +> V1VolumeAttributesClass replaceVolumeAttributesClass(body) + +replace the specified VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiReplaceVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiReplaceVolumeAttributesClassRequest = { + // name of the VolumeAttributesClass + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + driverName: "driverName_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + parameters: { + "key": "key_example", + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1VolumeAttributesClass**| | + **name** | [**string**] | name of the VolumeAttributesClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + diff --git a/src/gen/apis/AdmissionregistrationV1beta1Api.ts b/src/gen/apis/AdmissionregistrationV1beta1Api.ts index 17da34a9e7..c2cc1c5bbc 100644 --- a/src/gen/apis/AdmissionregistrationV1beta1Api.ts +++ b/src/gen/apis/AdmissionregistrationV1beta1Api.ts @@ -13,10 +13,10 @@ import {SecurityAuthentication} from '../auth/auth.js'; import { V1APIResourceList } from '../models/V1APIResourceList.js'; import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; import { V1Status } from '../models/V1Status.js'; -import { V1beta1ValidatingAdmissionPolicy } from '../models/V1beta1ValidatingAdmissionPolicy.js'; -import { V1beta1ValidatingAdmissionPolicyBinding } from '../models/V1beta1ValidatingAdmissionPolicyBinding.js'; -import { V1beta1ValidatingAdmissionPolicyBindingList } from '../models/V1beta1ValidatingAdmissionPolicyBindingList.js'; -import { V1beta1ValidatingAdmissionPolicyList } from '../models/V1beta1ValidatingAdmissionPolicyList.js'; +import { V1beta1MutatingAdmissionPolicy } from '../models/V1beta1MutatingAdmissionPolicy.js'; +import { V1beta1MutatingAdmissionPolicyBinding } from '../models/V1beta1MutatingAdmissionPolicyBinding.js'; +import { V1beta1MutatingAdmissionPolicyBindingList } from '../models/V1beta1MutatingAdmissionPolicyBindingList.js'; +import { V1beta1MutatingAdmissionPolicyList } from '../models/V1beta1MutatingAdmissionPolicyList.js'; /** * no description @@ -24,19 +24,19 @@ import { V1beta1ValidatingAdmissionPolicyList } from '../models/V1beta1Validatin export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIRequestFactory { /** - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicy * @param body * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async createValidatingAdmissionPolicy(body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async createMutatingAdmissionPolicy(body: V1beta1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "createValidatingAdmissionPolicy", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "createMutatingAdmissionPolicy", "body"); } @@ -45,7 +45,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -76,7 +76,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicy", ""), + ObjectSerializer.serialize(body, "V1beta1MutatingAdmissionPolicy", ""), contentType ); requestContext.setBody(serializedBody); @@ -97,19 +97,19 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * create a ValidatingAdmissionPolicyBinding + * create a MutatingAdmissionPolicyBinding * @param body * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async createValidatingAdmissionPolicyBinding(body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async createMutatingAdmissionPolicyBinding(body: V1beta1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "createValidatingAdmissionPolicyBinding", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "createMutatingAdmissionPolicyBinding", "body"); } @@ -118,7 +118,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -149,7 +149,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicyBinding", ""), + ObjectSerializer.serialize(body, "V1beta1MutatingAdmissionPolicyBinding", ""), contentType ); requestContext.setBody(serializedBody); @@ -170,7 +170,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * delete collection of ValidatingAdmissionPolicy + * delete collection of MutatingAdmissionPolicy * @param pretty If \'true\', 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 _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -187,7 +187,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public async deleteCollectionValidatingAdmissionPolicy(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteCollectionMutatingAdmissionPolicy(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -206,7 +206,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -308,7 +308,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * delete collection of ValidatingAdmissionPolicyBinding + * delete collection of MutatingAdmissionPolicyBinding * @param pretty If \'true\', 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 _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -325,7 +325,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public async deleteCollectionValidatingAdmissionPolicyBinding(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteCollectionMutatingAdmissionPolicyBinding(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -344,7 +344,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -446,8 +446,8 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -456,12 +456,12 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public async deleteValidatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteMutatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "deleteValidatingAdmissionPolicy", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "deleteMutatingAdmissionPolicy", "name"); } @@ -473,7 +473,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -536,8 +536,8 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -546,12 +546,12 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public async deleteValidatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteMutatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "deleteValidatingAdmissionPolicyBinding", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "deleteMutatingAdmissionPolicyBinding", "name"); } @@ -563,7 +563,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -655,7 +655,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * list or watch objects of kind ValidatingAdmissionPolicy + * list or watch objects of kind MutatingAdmissionPolicy * @param pretty If \'true\', 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 allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -668,7 +668,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listValidatingAdmissionPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listMutatingAdmissionPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -683,7 +683,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -761,7 +761,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * list or watch objects of kind ValidatingAdmissionPolicyBinding + * list or watch objects of kind MutatingAdmissionPolicyBinding * @param pretty If \'true\', 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 allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -774,7 +774,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listValidatingAdmissionPolicyBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listMutatingAdmissionPolicyBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -789,7 +789,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -867,8 +867,8 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * partially update the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy + * partially update the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy * @param body * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -876,18 +876,18 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchValidatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async patchMutatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicy", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "patchMutatingAdmissionPolicy", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicy", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "patchMutatingAdmissionPolicy", "body"); } @@ -897,7 +897,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -965,8 +965,8 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * partially update the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding + * partially update the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding * @param body * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -974,18 +974,18 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchValidatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async patchMutatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicyBinding", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "patchMutatingAdmissionPolicyBinding", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicyBinding", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "patchMutatingAdmissionPolicyBinding", "body"); } @@ -995,7 +995,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1063,120 +1063,22 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy - * @param body + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchValidatingAdmissionPolicyStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async readMutatingAdmissionPolicy(name: string, pretty?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicyStatus", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicyStatus", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "readMutatingAdmissionPolicy", "name"); } - - - - // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readValidatingAdmissionPolicy(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "readValidatingAdmissionPolicy", "name"); - } - - - - // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1205,22 +1107,22 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public async readValidatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: Configuration): Promise { + public async readMutatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "readValidatingAdmissionPolicyBinding", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "readMutatingAdmissionPolicyBinding", "name"); } // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1249,70 +1151,26 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readValidatingAdmissionPolicyStatus(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "readValidatingAdmissionPolicyStatus", "name"); - } - - - - // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy + * replace the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy * @param body * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceValidatingAdmissionPolicy(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceMutatingAdmissionPolicy(name: string, body: V1beta1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicy", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceMutatingAdmissionPolicy", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicy", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceMutatingAdmissionPolicy", "body"); } @@ -1321,7 +1179,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1353,7 +1211,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicy", ""), + ObjectSerializer.serialize(body, "V1beta1MutatingAdmissionPolicy", ""), contentType ); requestContext.setBody(serializedBody); @@ -1374,26 +1232,26 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * replace the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding + * replace the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding * @param body * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceValidatingAdmissionPolicyBinding(name: string, body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceMutatingAdmissionPolicyBinding(name: string, body: V1beta1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicyBinding", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceMutatingAdmissionPolicyBinding", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicyBinding", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceMutatingAdmissionPolicyBinding", "body"); } @@ -1402,7 +1260,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1434,88 +1292,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicyBinding", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceValidatingAdmissionPolicyStatus(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicyStatus", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicyStatus", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicy", ""), + ObjectSerializer.serialize(body, "V1beta1MutatingAdmissionPolicyBinding", ""), contentType ); requestContext.setBody(serializedBody); @@ -1543,30 +1320,30 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to createValidatingAdmissionPolicy + * @params response Response returned by the server for a request to createMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async createValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async createMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1575,10 +1352,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1589,30 +1366,30 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to createValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to createMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async createValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async createMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1621,10 +1398,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1635,10 +1412,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteCollectionValidatingAdmissionPolicy + * @params response Response returned by the server for a request to deleteCollectionMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -1667,10 +1444,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteCollectionValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to deleteCollectionMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -1699,10 +1476,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteValidatingAdmissionPolicy + * @params response Response returned by the server for a request to deleteMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async deleteValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async deleteMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -1738,10 +1515,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to deleteMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async deleteMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -1809,48 +1586,16 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to listValidatingAdmissionPolicy - * @throws ApiException if the response code was not in [200, 299] - */ - public async listValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyList", "" - ) as V1beta1ValidatingAdmissionPolicyList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyList", "" - ) as V1beta1ValidatingAdmissionPolicyList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to listMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async listValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async listMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBindingList = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBindingList", "" - ) as V1beta1ValidatingAdmissionPolicyBindingList; + "V1beta1MutatingAdmissionPolicyList", "" + ) as V1beta1MutatingAdmissionPolicyList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1859,10 +1604,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBindingList = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBindingList", "" - ) as V1beta1ValidatingAdmissionPolicyBindingList; + "V1beta1MutatingAdmissionPolicyList", "" + ) as V1beta1MutatingAdmissionPolicyList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1873,23 +1618,16 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to patchValidatingAdmissionPolicy + * @params response Response returned by the server for a request to listMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async patchValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async listMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBindingList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBindingList", "" + ) as V1beta1MutatingAdmissionPolicyBindingList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1898,10 +1636,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBindingList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBindingList", "" + ) as V1beta1MutatingAdmissionPolicyBindingList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1912,23 +1650,23 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to patchValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to patchMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async patchValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async patchMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1937,10 +1675,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1951,23 +1689,23 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to patchValidatingAdmissionPolicyStatus + * @params response Response returned by the server for a request to patchMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async patchValidatingAdmissionPolicyStatusWithHttpInfo(response: ResponseContext): Promise> { + public async patchMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1976,10 +1714,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1990,16 +1728,16 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readValidatingAdmissionPolicy + * @params response Response returned by the server for a request to readMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async readValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async readMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -2008,10 +1746,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -2022,87 +1760,16 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to readMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async readValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async readMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to readValidatingAdmissionPolicyStatus - * @throws ApiException if the response code was not in [200, 299] - */ - public async readValidatingAdmissionPolicyStatusWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to replaceValidatingAdmissionPolicy - * @throws ApiException if the response code was not in [200, 299] - */ - public async replaceValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -2111,10 +1778,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -2125,23 +1792,23 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to replaceMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async replaceValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async replaceMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -2150,10 +1817,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -2164,23 +1831,23 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceValidatingAdmissionPolicyStatus + * @params response Response returned by the server for a request to replaceMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async replaceValidatingAdmissionPolicyStatusWithHttpInfo(response: ResponseContext): Promise> { + public async replaceMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -2189,10 +1856,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } diff --git a/src/gen/apis/CertificatesV1alpha1Api.ts b/src/gen/apis/CertificatesV1alpha1Api.ts index 95a92a3bd5..ba8a68aa6c 100644 --- a/src/gen/apis/CertificatesV1alpha1Api.ts +++ b/src/gen/apis/CertificatesV1alpha1Api.ts @@ -15,6 +15,8 @@ import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; import { V1Status } from '../models/V1Status.js'; import { V1alpha1ClusterTrustBundle } from '../models/V1alpha1ClusterTrustBundle.js'; import { V1alpha1ClusterTrustBundleList } from '../models/V1alpha1ClusterTrustBundleList.js'; +import { V1alpha1PodCertificateRequest } from '../models/V1alpha1PodCertificateRequest.js'; +import { V1alpha1PodCertificateRequestList } from '../models/V1alpha1PodCertificateRequestList.js'; /** * no description @@ -94,6 +96,87 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory return requestContext; } + /** + * create a PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createNamespacedPodCertificateRequest(namespace: string, body: V1alpha1PodCertificateRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "createNamespacedPodCertificateRequest", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "createNamespacedPodCertificateRequest", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1alpha1PodCertificateRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * delete a ClusterTrustBundle * @param name name of the ClusterTrustBundle @@ -323,51 +406,37 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } /** - * get available resources - */ - public async getAPIResources(_options?: Configuration): Promise { - let _config = _options || this.configuration; - - // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ClusterTrustBundle + * delete collection of PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', 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 allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * @param body */ - public async listClusterTrustBundle(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async deleteCollectionNamespacedPodCertificateRequest(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "deleteCollectionNamespacedPodCertificateRequest", "namespace"); + } + + + + + + @@ -380,10 +449,11 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles'; + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -392,13 +462,13 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); } // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } // Query Params @@ -406,6 +476,16 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); } + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + // Query Params if (labelSelector !== undefined) { requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); @@ -416,6 +496,16 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); } + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + // Query Params if (resourceVersion !== undefined) { requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); @@ -436,11 +526,15 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); } - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -458,27 +552,29 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } /** - * partially update the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle - * @param body + * delete a PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body */ - public async patchClusterTrustBundle(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async deleteNamespacedPodCertificateRequest(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "patchClusterTrustBundle", "name"); + throw new RequiredError("CertificatesV1alpha1Api", "deleteNamespacedPodCertificateRequest", "name"); } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "patchClusterTrustBundle", "body"); + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "deleteNamespacedPodCertificateRequest", "namespace"); } @@ -487,12 +583,15 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory + + // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -506,36 +605,31 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); } // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); } // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); } // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); + const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), contentType ); requestContext.setBody(serializedBody); @@ -556,33 +650,18 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } /** - * read the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * get available resources */ - public async readClusterTrustBundle(name: string, pretty?: string, _options?: Configuration): Promise { + public async getAPIResources(_options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "readClusterTrustBundle", "name"); - } - - - // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -600,26 +679,898 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } /** - * replace the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle - * @param body + * list or watch objects of kind ClusterTrustBundle * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async replaceClusterTrustBundle(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async listClusterTrustBundle(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "replaceClusterTrustBundle", "name"); + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', 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 allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedPodCertificateRequest(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "listNamespacedPodCertificateRequest", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind PodCertificateRequest + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 pretty If \'true\', 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listPodCertificateRequestForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/podcertificaterequests'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchClusterTrustBundle(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchClusterTrustBundle", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchClusterTrustBundle", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedPodCertificateRequest(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequest", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequest", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequest", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update status of the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedPodCertificateRequestStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequestStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequestStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequestStatus", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readClusterTrustBundle(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readClusterTrustBundle", "name"); + } + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedPodCertificateRequest(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readNamespacedPodCertificateRequest", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readNamespacedPodCertificateRequest", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read status of the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedPodCertificateRequestStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readNamespacedPodCertificateRequestStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readNamespacedPodCertificateRequestStatus", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceClusterTrustBundle(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceClusterTrustBundle", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceClusterTrustBundle", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1alpha1ClusterTrustBundle", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedPodCertificateRequest(name: string, namespace: string, body: V1alpha1PodCertificateRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequest", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequest", "namespace"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "replaceClusterTrustBundle", "body"); + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequest", "body"); } @@ -628,8 +1579,9 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); @@ -660,7 +1612,96 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha1ClusterTrustBundle", ""), + ObjectSerializer.serialize(body, "V1alpha1PodCertificateRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace status of the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedPodCertificateRequestStatus(name: string, namespace: string, body: V1alpha1PodCertificateRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequestStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequestStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequestStatus", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1alpha1PodCertificateRequest", ""), contentType ); requestContext.setBody(serializedBody); @@ -688,30 +1729,147 @@ export class CertificatesV1alpha1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to createClusterTrustBundle + * @params response Response returned by the server for a request to createClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async createClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1ClusterTrustBundle", "" + ) as V1alpha1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1ClusterTrustBundle", "" + ) as V1alpha1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1ClusterTrustBundle", "" + ) as V1alpha1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1ClusterTrustBundle", "" + ) as V1alpha1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async createNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionClusterTrustBundle * @throws ApiException if the response code was not in [200, 299] */ - public async createClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha1ClusterTrustBundle", "" - ) as V1alpha1ClusterTrustBundle; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha1ClusterTrustBundle", "" - ) as V1alpha1ClusterTrustBundle; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + const body: V1Status = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha1ClusterTrustBundle", "" - ) as V1alpha1ClusterTrustBundle; + "V1Status", "" + ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -720,10 +1878,10 @@ export class CertificatesV1alpha1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + const body: V1Status = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha1ClusterTrustBundle", "" - ) as V1alpha1ClusterTrustBundle; + "V1Status", "" + ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -734,10 +1892,10 @@ export class CertificatesV1alpha1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteClusterTrustBundle + * @params response Response returned by the server for a request to deleteCollectionNamespacedPodCertificateRequest * @throws ApiException if the response code was not in [200, 299] */ - public async deleteClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -746,13 +1904,6 @@ export class CertificatesV1alpha1ApiResponseProcessor { ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); } @@ -773,10 +1924,10 @@ export class CertificatesV1alpha1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteCollectionClusterTrustBundle + * @params response Response returned by the server for a request to deleteNamespacedPodCertificateRequest * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + public async deleteNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -785,6 +1936,13 @@ export class CertificatesV1alpha1ApiResponseProcessor { ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); } @@ -865,6 +2023,70 @@ export class CertificatesV1alpha1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequestList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequestList", "" + ) as V1alpha1PodCertificateRequestList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequestList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequestList", "" + ) as V1alpha1PodCertificateRequestList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listPodCertificateRequestForAllNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + public async listPodCertificateRequestForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequestList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequestList", "" + ) as V1alpha1PodCertificateRequestList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequestList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequestList", "" + ) as V1alpha1PodCertificateRequestList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -904,6 +2126,84 @@ export class CertificatesV1alpha1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedPodCertificateRequestStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedPodCertificateRequestStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -936,6 +2236,70 @@ export class CertificatesV1alpha1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedPodCertificateRequestStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedPodCertificateRequestStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -975,4 +2339,82 @@ export class CertificatesV1alpha1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedPodCertificateRequestStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedPodCertificateRequestStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + } diff --git a/src/gen/apis/ResourceV1Api.ts b/src/gen/apis/ResourceV1Api.ts new file mode 100644 index 0000000000..f88ea00c32 --- /dev/null +++ b/src/gen/apis/ResourceV1Api.ts @@ -0,0 +1,4396 @@ +// TODO: better import syntax? +import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.js'; +import {Configuration} from '../configuration.js'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http.js'; +import FormData from "form-data"; +import { URLSearchParams } from 'url'; +import {ObjectSerializer} from '../models/ObjectSerializer.js'; +import {ApiException} from './exception.js'; +import {canConsumeForm, isCodeInRange} from '../util.js'; +import {SecurityAuthentication} from '../auth/auth.js'; + + +import { ResourceV1ResourceClaim } from '../models/ResourceV1ResourceClaim.js'; +import { V1APIResourceList } from '../models/V1APIResourceList.js'; +import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; +import { V1DeviceClass } from '../models/V1DeviceClass.js'; +import { V1DeviceClassList } from '../models/V1DeviceClassList.js'; +import { V1ResourceClaimList } from '../models/V1ResourceClaimList.js'; +import { V1ResourceClaimTemplate } from '../models/V1ResourceClaimTemplate.js'; +import { V1ResourceClaimTemplateList } from '../models/V1ResourceClaimTemplateList.js'; +import { V1ResourceSlice } from '../models/V1ResourceSlice.js'; +import { V1ResourceSliceList } from '../models/V1ResourceSliceList.js'; +import { V1Status } from '../models/V1Status.js'; + +/** + * no description + */ +export class ResourceV1ApiRequestFactory extends BaseAPIRequestFactory { + + /** + * create a DeviceClass + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createDeviceClass(body: V1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "createDeviceClass", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeviceClass", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createNamespacedResourceClaim(namespace: string, body: ResourceV1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "createNamespacedResourceClaim", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "createNamespacedResourceClaim", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "ResourceV1ResourceClaim", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createNamespacedResourceClaimTemplate(namespace: string, body: V1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "createNamespacedResourceClaimTemplate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "createNamespacedResourceClaimTemplate", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ResourceClaimTemplate", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a ResourceSlice + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createResourceSlice(body: V1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "createResourceSlice", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ResourceSlice", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionDeviceClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', 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 _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionNamespacedResourceClaim(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "deleteCollectionNamespacedResourceClaim", "namespace"); + } + + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', 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 _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionNamespacedResourceClaimTemplate(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "deleteCollectionNamespacedResourceClaimTemplate", "namespace"); + } + + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionResourceSlice(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a DeviceClass + * @param name name of the DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "deleteDeviceClass", "name"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "deleteNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "deleteNamespacedResourceClaim", "namespace"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "deleteNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "deleteNamespacedResourceClaimTemplate", "namespace"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ResourceSlice + * @param name name of the ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "deleteResourceSlice", "name"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * get available resources + */ + public async getAPIResources(_options?: Configuration): Promise { + let _config = _options || this.configuration; + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listDeviceClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', 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 allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedResourceClaim(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "listNamespacedResourceClaim", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', 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 allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedResourceClaimTemplate(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "listNamespacedResourceClaimTemplate", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 pretty If \'true\', 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listResourceClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceclaims'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 pretty If \'true\', 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceclaimtemplates'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listResourceSlice(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified DeviceClass + * @param name name of the DeviceClass + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchDeviceClass", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchDeviceClass", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaim", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaim", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimStatus", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimTemplate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimTemplate", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchResourceSlice", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchResourceSlice", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified DeviceClass + * @param name name of the DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readDeviceClass(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readDeviceClass", "name"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaim", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaimStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaimStatus", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaimTemplate", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ResourceSlice + * @param name name of the ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readResourceSlice(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readResourceSlice", "name"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified DeviceClass + * @param name name of the DeviceClass + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceDeviceClass(name: string, body: V1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceDeviceClass", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceDeviceClass", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeviceClass", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedResourceClaim(name: string, namespace: string, body: ResourceV1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaim", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaim", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "ResourceV1ResourceClaim", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: ResourceV1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimStatus", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "ResourceV1ResourceClaim", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimTemplate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimTemplate", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ResourceClaimTemplate", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ResourceSlice + * @param name name of the ResourceSlice + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceResourceSlice(name: string, body: V1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceResourceSlice", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceResourceSlice", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ResourceSlice", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + +} + +export class ResourceV1ApiResponseProcessor { + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async createDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async createNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async createNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async createResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAPIResources + * @throws ApiException if the response code was not in [200, 299] + */ + public async getAPIResourcesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1APIResourceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1APIResourceList", "" + ) as V1APIResourceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1APIResourceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1APIResourceList", "" + ) as V1APIResourceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async listDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClassList", "" + ) as V1DeviceClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClassList", "" + ) as V1DeviceClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimList", "" + ) as V1ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimList", "" + ) as V1ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplateList", "" + ) as V1ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplateList", "" + ) as V1ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listResourceClaimForAllNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + public async listResourceClaimForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimList", "" + ) as V1ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimList", "" + ) as V1ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listResourceClaimTemplateForAllNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + public async listResourceClaimTemplateForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplateList", "" + ) as V1ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplateList", "" + ) as V1ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async listResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSliceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSliceList", "" + ) as V1ResourceSliceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSliceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSliceList", "" + ) as V1ResourceSliceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedResourceClaimStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async readDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedResourceClaimStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async readResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedResourceClaimStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + +} diff --git a/src/gen/apis/ResourceV1alpha3Api.ts b/src/gen/apis/ResourceV1alpha3Api.ts index ca6af42586..23273d4715 100644 --- a/src/gen/apis/ResourceV1alpha3Api.ts +++ b/src/gen/apis/ResourceV1alpha3Api.ts @@ -13,16 +13,8 @@ import {SecurityAuthentication} from '../auth/auth.js'; import { V1APIResourceList } from '../models/V1APIResourceList.js'; import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; import { V1Status } from '../models/V1Status.js'; -import { V1alpha3DeviceClass } from '../models/V1alpha3DeviceClass.js'; -import { V1alpha3DeviceClassList } from '../models/V1alpha3DeviceClassList.js'; import { V1alpha3DeviceTaintRule } from '../models/V1alpha3DeviceTaintRule.js'; import { V1alpha3DeviceTaintRuleList } from '../models/V1alpha3DeviceTaintRuleList.js'; -import { V1alpha3ResourceClaim } from '../models/V1alpha3ResourceClaim.js'; -import { V1alpha3ResourceClaimList } from '../models/V1alpha3ResourceClaimList.js'; -import { V1alpha3ResourceClaimTemplate } from '../models/V1alpha3ResourceClaimTemplate.js'; -import { V1alpha3ResourceClaimTemplateList } from '../models/V1alpha3ResourceClaimTemplateList.js'; -import { V1alpha3ResourceSlice } from '../models/V1alpha3ResourceSlice.js'; -import { V1alpha3ResourceSliceList } from '../models/V1alpha3ResourceSliceList.js'; /** * no description @@ -30,19 +22,19 @@ import { V1alpha3ResourceSliceList } from '../models/V1alpha3ResourceSliceList.j export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { /** - * create a DeviceClass + * create a DeviceTaintRule * @param body * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async createDeviceClass(body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async createDeviceTaintRule(body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createDeviceClass", "body"); + throw new RequiredError("ResourceV1alpha3Api", "createDeviceTaintRule", "body"); } @@ -51,7 +43,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses'; + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -82,7 +74,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3DeviceClass", ""), + ObjectSerializer.serialize(body, "V1alpha3DeviceTaintRule", ""), contentType ); requestContext.setBody(serializedBody); @@ -103,20 +95,35 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * create a DeviceTaintRule - * @param body + * delete collection of DeviceTaintRule * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body */ - public async createDeviceTaintRule(body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async deleteCollectionDeviceTaintRule(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createDeviceTaintRule", "body"); - } + + + + + + + + + @@ -127,7 +134,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -135,100 +142,69 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + // Query Params if (dryRun !== undefined) { requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); } // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); } - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3DeviceTaintRule", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); } - return requestContext; - } - - /** - * create a ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async createNamespacedResourceClaim(namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createNamespacedResourceClaim", "namespace"); + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); } - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createNamespacedResourceClaim", "body"); + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); } + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); } // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); } // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); } // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); } @@ -236,7 +212,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaim", ""), + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), contentType ); requestContext.setBody(serializedBody); @@ -257,27 +233,26 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * create a ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param body + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body */ - public async createNamespacedResourceClaimTemplate(namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async deleteDeviceTaintRule(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createNamespacedResourceClaimTemplate", "namespace"); + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "deleteDeviceTaintRule", "name"); } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createNamespacedResourceClaimTemplate", "body"); - } + @@ -285,11 +260,11 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -303,13 +278,23 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); } // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); } @@ -317,7 +302,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaimTemplate", ""), + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), contentType ); requestContext.setBody(serializedBody); @@ -338,62 +323,18 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * create a ResourceSlice - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * get available resources */ - public async createResourceSlice(body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async getAPIResources(_options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createResourceSlice", "body"); - } - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices'; + const localVarPath = '/apis/resource.k8s.io/v1alpha3/'; // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceSlice", ""), - contentType - ); - requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -411,24 +352,20 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of DeviceClass + * list or watch objects of kind DeviceTaintRule * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async deleteCollectionDeviceClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async listDeviceTaintRule(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -442,15 +379,11 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses'; + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -459,13 +392,13 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); } // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); } // Query Params @@ -473,16 +406,6 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); } - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - // Query Params if (labelSelector !== undefined) { requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); @@ -493,16 +416,6 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); } - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - // Query Params if (resourceVersion !== undefined) { requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); @@ -523,15 +436,11 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); } + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -549,34 +458,28 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of DeviceTaintRule + * partially update the specified DeviceTaintRule + * @param name name of the DeviceTaintRule + * @param body * @param pretty If \'true\', 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 _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async deleteCollectionDeviceTaintRule(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async patchDeviceTaintRule(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "patchDeviceTaintRule", "name"); + } - - - - - - + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "patchDeviceTaintRule", "body"); + } @@ -585,10 +488,11 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -596,77 +500,42 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - // Query Params if (dryRun !== undefined) { requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); } // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); } // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); } // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + ObjectSerializer.serialize(body, "any", ""), contentType ); requestContext.setBody(serializedBody); @@ -687,54 +556,26 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects + * read the specified DeviceTaintRule + * @param name name of the DeviceTaintRule * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body */ - public async deleteCollectionNamespacedResourceClaim(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async readDeviceTaintRule(name: string, pretty?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteCollectionNamespacedResourceClaim", "namespace"); + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "readDeviceTaintRule", "name"); } - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -742,80 +583,6 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -833,4071 +600,98 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects + * replace the specified DeviceTaintRule + * @param name name of the DeviceTaintRule + * @param body * @param pretty If \'true\', 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 _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body - */ - public async deleteCollectionNamespacedResourceClaimTemplate(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteCollectionNamespacedResourceClaimTemplate", "namespace"); - } - - - - - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete collection of ResourceSlice - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async deleteCollectionResourceSlice(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a DeviceClass - * @param name name of the DeviceClass - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteDeviceClass", "name"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a DeviceTaintRule - * @param name name of the DeviceTaintRule - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteDeviceTaintRule(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteDeviceTaintRule", "name"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async replaceDeviceTaintRule(name: string, body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteNamespacedResourceClaim", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteNamespacedResourceClaim", "namespace"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteNamespacedResourceClaimTemplate", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteNamespacedResourceClaimTemplate", "namespace"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a ResourceSlice - * @param name name of the ResourceSlice - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteResourceSlice", "name"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * get available resources - */ - public async getAPIResources(_options?: Configuration): Promise { - let _config = _options || this.configuration; - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind DeviceClass - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listDeviceClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind DeviceTaintRule - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listDeviceTaintRule(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', 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 allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listNamespacedResourceClaim(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "listNamespacedResourceClaim", "namespace"); - } - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', 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 allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listNamespacedResourceClaimTemplate(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "listNamespacedResourceClaimTemplate", "namespace"); - } - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceClaim - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 pretty If \'true\', 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listResourceClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceclaims'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceClaimTemplate - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 pretty If \'true\', 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceclaimtemplates'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceSlice - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listResourceSlice(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified DeviceClass - * @param name name of the DeviceClass - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchDeviceClass", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchDeviceClass", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified DeviceTaintRule - * @param name name of the DeviceTaintRule - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchDeviceTaintRule(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchDeviceTaintRule", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchDeviceTaintRule", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaim", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaim", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaim", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update status of the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimStatus", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimStatus", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimStatus", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimTemplate", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimTemplate", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimTemplate", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified ResourceSlice - * @param name name of the ResourceSlice - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchResourceSlice", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchResourceSlice", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified DeviceClass - * @param name name of the DeviceClass - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readDeviceClass(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readDeviceClass", "name"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified DeviceTaintRule - * @param name name of the DeviceTaintRule - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readDeviceTaintRule(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readDeviceTaintRule", "name"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaim", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaim", "namespace"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read status of the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaimStatus", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaimStatus", "namespace"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaimTemplate", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaimTemplate", "namespace"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ResourceSlice - * @param name name of the ResourceSlice - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readResourceSlice(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readResourceSlice", "name"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified DeviceClass - * @param name name of the DeviceClass - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceDeviceClass(name: string, body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceClass", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceClass", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3DeviceClass", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified DeviceTaintRule - * @param name name of the DeviceTaintRule - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceDeviceTaintRule(name: string, body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceTaintRule", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceTaintRule", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3DeviceTaintRule", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceNamespacedResourceClaim(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaim", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaim", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaim", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaim", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace status of the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimStatus", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimStatus", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimStatus", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaim", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimTemplate", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimTemplate", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimTemplate", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaimTemplate", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified ResourceSlice - * @param name name of the ResourceSlice - * @param body - * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceResourceSlice(name: string, body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceResourceSlice", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceResourceSlice", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceSlice", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - -} - -export class ResourceV1alpha3ApiResponseProcessor { - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async createDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createDeviceTaintRule - * @throws ApiException if the response code was not in [200, 299] - */ - public async createDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async createNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async createNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async createResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionDeviceTaintRule - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteDeviceTaintRule - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to getAPIResources - * @throws ApiException if the response code was not in [200, 299] - */ - public async getAPIResourcesWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1APIResourceList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1APIResourceList", "" - ) as V1APIResourceList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1APIResourceList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1APIResourceList", "" - ) as V1APIResourceList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async listDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClassList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClassList", "" - ) as V1alpha3DeviceClassList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClassList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClassList", "" - ) as V1alpha3DeviceClassList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listDeviceTaintRule - * @throws ApiException if the response code was not in [200, 299] - */ - public async listDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRuleList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRuleList", "" - ) as V1alpha3DeviceTaintRuleList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceTaintRuleList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRuleList", "" - ) as V1alpha3DeviceTaintRuleList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async listNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimList", "" - ) as V1alpha3ResourceClaimList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimList", "" - ) as V1alpha3ResourceClaimList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async listNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplateList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplateList", "" - ) as V1alpha3ResourceClaimTemplateList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplateList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplateList", "" - ) as V1alpha3ResourceClaimTemplateList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listResourceClaimForAllNamespaces - * @throws ApiException if the response code was not in [200, 299] - */ - public async listResourceClaimForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimList", "" - ) as V1alpha3ResourceClaimList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimList", "" - ) as V1alpha3ResourceClaimList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listResourceClaimTemplateForAllNamespaces - * @throws ApiException if the response code was not in [200, 299] - */ - public async listResourceClaimTemplateForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplateList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplateList", "" - ) as V1alpha3ResourceClaimTemplateList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplateList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplateList", "" - ) as V1alpha3ResourceClaimTemplateList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async listResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSliceList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSliceList", "" - ) as V1alpha3ResourceSliceList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSliceList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSliceList", "" - ) as V1alpha3ResourceSliceList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchDeviceTaintRule - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchNamespacedResourceClaimStatus - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceTaintRule", "name"); } - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceTaintRule", "body"); } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); } - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to readDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async readDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1alpha3DeviceTaintRule", ""), + contentType + ); + requestContext.setBody(serializedBody); - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + return requestContext; } +} + +export class ResourceV1alpha3ApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readDeviceTaintRule + * @params response Response returned by the server for a request to createDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async readDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { + public async createDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( @@ -4906,36 +700,18 @@ export class ResourceV1alpha3ApiResponseProcessor { ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha3DeviceTaintRule", "" ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to readNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async readNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -4944,10 +720,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -4958,16 +734,16 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readNamespacedResourceClaimStatus + * @params response Response returned by the server for a request to deleteCollectionDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1Status = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1Status", "" + ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -4976,10 +752,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1Status = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1Status", "" + ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -4990,16 +766,23 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readNamespacedResourceClaimTemplate + * @params response Response returned by the server for a request to deleteDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + public async deleteDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -5008,10 +791,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -5022,16 +805,16 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readResourceSlice + * @params response Response returned by the server for a request to getAPIResources * @throws ApiException if the response code was not in [200, 299] */ - public async readResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + public async getAPIResourcesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1APIResourceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1APIResourceList", "" + ) as V1APIResourceList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -5040,10 +823,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1APIResourceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1APIResourceList", "" + ) as V1APIResourceList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -5054,23 +837,16 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceDeviceClass + * @params response Response returned by the server for a request to listDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async replaceDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + public async listDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRuleList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; + "V1alpha3DeviceTaintRuleList", "" + ) as V1alpha3DeviceTaintRuleList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -5079,10 +855,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRuleList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; + "V1alpha3DeviceTaintRuleList", "" + ) as V1alpha3DeviceTaintRuleList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -5093,10 +869,10 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceDeviceTaintRule + * @params response Response returned by the server for a request to patchDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async replaceDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { + public async patchDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( @@ -5132,101 +908,16 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async replaceNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to replaceNamespacedResourceClaimStatus - * @throws ApiException if the response code was not in [200, 299] - */ - public async replaceNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to replaceNamespacedResourceClaimTemplate + * @params response Response returned by the server for a request to readDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + public async readDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -5235,10 +926,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -5249,23 +940,23 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceResourceSlice + * @params response Response returned by the server for a request to replaceDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async replaceResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + public async replaceDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -5274,10 +965,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } diff --git a/src/gen/apis/StorageV1Api.ts b/src/gen/apis/StorageV1Api.ts index 93bf24fd83..8fe6cbe9c7 100644 --- a/src/gen/apis/StorageV1Api.ts +++ b/src/gen/apis/StorageV1Api.ts @@ -23,6 +23,8 @@ import { V1StorageClass } from '../models/V1StorageClass.js'; import { V1StorageClassList } from '../models/V1StorageClassList.js'; import { V1VolumeAttachment } from '../models/V1VolumeAttachment.js'; import { V1VolumeAttachmentList } from '../models/V1VolumeAttachmentList.js'; +import { V1VolumeAttributesClass } from '../models/V1VolumeAttributesClass.js'; +import { V1VolumeAttributesClassList } from '../models/V1VolumeAttributesClassList.js'; /** * no description @@ -402,6 +404,79 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * create a VolumeAttributesClass + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createVolumeAttributesClass(body: V1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("StorageV1Api", "createVolumeAttributesClass", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1VolumeAttributesClass", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * delete a CSIDriver * @param name name of the CSIDriver @@ -1280,6 +1355,144 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * delete collection of VolumeAttributesClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionVolumeAttributesClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * delete a CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -1558,6 +1771,96 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * delete a VolumeAttributesClass + * @param name name of the VolumeAttributesClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteVolumeAttributesClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("StorageV1Api", "deleteVolumeAttributesClass", "name"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * get available resources */ @@ -1828,12 +2131,131 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/csistoragecapacities'; + const localVarPath = '/apis/storage.k8s.io/v1/csistoragecapacities'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', 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 allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not 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 fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedCSIStorageCapacity(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("StorageV1Api", "listNamespacedCSIStorageCapacity", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + // Query Params if (allowWatchBookmarks !== undefined) { requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); @@ -1859,11 +2281,6 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); } - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - // Query Params if (resourceVersion !== undefined) { requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); @@ -1906,8 +2323,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind CSIStorageCapacity - * @param namespace object name and auth scope, such as for teams and projects + * list or watch objects of kind StorageClass * @param pretty If \'true\', 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 allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -1920,15 +2336,9 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listNamespacedCSIStorageCapacity(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listStorageClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("StorageV1Api", "listNamespacedCSIStorageCapacity", "namespace"); - } - - @@ -1941,8 +2351,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/storage.k8s.io/v1/storageclasses'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -2020,7 +2429,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind StorageClass + * list or watch objects of kind VolumeAttachment * @param pretty If \'true\', 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 allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -2033,7 +2442,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listStorageClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listVolumeAttachment(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -2048,7 +2457,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/storageclasses'; + const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -2126,7 +2535,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind VolumeAttachment + * list or watch objects of kind VolumeAttributesClass * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -2139,7 +2548,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listVolumeAttachment(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listVolumeAttributesClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -2154,7 +2563,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments'; + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -2827,6 +3236,104 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * partially update the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchVolumeAttributesClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("StorageV1Api", "patchVolumeAttributesClass", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("StorageV1Api", "patchVolumeAttributesClass", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * read the specified CSIDriver * @param name name of the CSIDriver @@ -3099,6 +3606,50 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readVolumeAttributesClass(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("StorageV1Api", "readVolumeAttributesClass", "name"); + } + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * replace the specified CSIDriver * @param name name of the CSIDriver @@ -3209,8 +3760,97 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/csinodes/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/storage.k8s.io/v1/csinodes/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1CSINode", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified CSIStorageCapacity + * @param name name of the CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); @@ -3241,7 +3881,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1CSINode", ""), + ObjectSerializer.serialize(body, "V1CSIStorageCapacity", ""), contentType ); requestContext.setBody(serializedBody); @@ -3262,33 +3902,26 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * replace the specified CSIStorageCapacity - * @param name name of the CSIStorageCapacity - * @param namespace object name and auth scope, such as for teams and projects + * replace the specified StorageClass + * @param name name of the StorageClass * @param body * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceStorageClass(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "namespace"); + throw new RequiredError("StorageV1Api", "replaceStorageClass", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "body"); + throw new RequiredError("StorageV1Api", "replaceStorageClass", "body"); } @@ -3297,9 +3930,8 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/storage.k8s.io/v1/storageclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); @@ -3330,7 +3962,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1CSIStorageCapacity", ""), + ObjectSerializer.serialize(body, "V1StorageClass", ""), contentType ); requestContext.setBody(serializedBody); @@ -3351,26 +3983,26 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * replace the specified StorageClass - * @param name name of the StorageClass + * replace the specified VolumeAttachment + * @param name name of the VolumeAttachment * @param body * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceStorageClass(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceVolumeAttachment(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("StorageV1Api", "replaceStorageClass", "name"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttachment", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("StorageV1Api", "replaceStorageClass", "body"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttachment", "body"); } @@ -3379,7 +4011,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/storageclasses/{name}' + const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -3411,7 +4043,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1StorageClass", ""), + ObjectSerializer.serialize(body, "V1VolumeAttachment", ""), contentType ); requestContext.setBody(serializedBody); @@ -3432,7 +4064,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * replace the specified VolumeAttachment + * replace status of the specified VolumeAttachment * @param name name of the VolumeAttachment * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -3440,18 +4072,18 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceVolumeAttachment(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceVolumeAttachmentStatus(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("StorageV1Api", "replaceVolumeAttachment", "name"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttachmentStatus", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("StorageV1Api", "replaceVolumeAttachment", "body"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttachmentStatus", "body"); } @@ -3460,7 +4092,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments/{name}' + const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments/{name}/status' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -3513,26 +4145,26 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * replace status of the specified VolumeAttachment - * @param name name of the VolumeAttachment + * replace the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass * @param body * @param pretty If \'true\', 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 dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceVolumeAttachmentStatus(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceVolumeAttributesClass(name: string, body: V1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("StorageV1Api", "replaceVolumeAttachmentStatus", "name"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttributesClass", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("StorageV1Api", "replaceVolumeAttachmentStatus", "body"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttributesClass", "body"); } @@ -3541,7 +4173,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments/{name}/status' + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -3573,7 +4205,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1VolumeAttachment", ""), + ObjectSerializer.serialize(body, "V1VolumeAttributesClass", ""), contentType ); requestContext.setBody(serializedBody); @@ -3827,6 +4459,52 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async createVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4065,6 +4743,38 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4182,6 +4892,45 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4406,6 +5155,38 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async listVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClassList", "" + ) as V1VolumeAttributesClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClassList", "" + ) as V1VolumeAttributesClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4640,6 +5421,45 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4832,6 +5652,38 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async readVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -5066,4 +5918,43 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + } diff --git a/src/gen/index.ts b/src/gen/index.ts index 06e8d8787e..0b62c310f7 100644 --- a/src/gen/index.ts +++ b/src/gen/index.ts @@ -9,5 +9,5 @@ export { RequiredError } from "./apis/baseapi.js"; export type { PromiseMiddleware as Middleware, Middleware as ObservableMiddleware } from './middleware.js'; export { Observable } from './rxjsStub.js'; -export { type AdmissionregistrationApiGetAPIGroupRequest, ObjectAdmissionregistrationApi as AdmissionregistrationApi, type AdmissionregistrationV1ApiCreateMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiCreateValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteCollectionMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiDeleteValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiGetAPIResourcesRequest, type AdmissionregistrationV1ApiListMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiListValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiListValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiListValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiPatchMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiPatchValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReadMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiReadValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReplaceMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiReplaceValidatingWebhookConfigurationRequest, ObjectAdmissionregistrationV1Api as AdmissionregistrationV1Api, type AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiGetAPIResourcesRequest, type AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyBindingRequest, ObjectAdmissionregistrationV1alpha1Api as AdmissionregistrationV1alpha1Api, type AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiGetAPIResourcesRequest, type AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyStatusRequest, ObjectAdmissionregistrationV1beta1Api as AdmissionregistrationV1beta1Api, type ApiextensionsApiGetAPIGroupRequest, ObjectApiextensionsApi as ApiextensionsApi, type ApiextensionsV1ApiCreateCustomResourceDefinitionRequest, type ApiextensionsV1ApiDeleteCollectionCustomResourceDefinitionRequest, type ApiextensionsV1ApiDeleteCustomResourceDefinitionRequest, type ApiextensionsV1ApiGetAPIResourcesRequest, type ApiextensionsV1ApiListCustomResourceDefinitionRequest, type ApiextensionsV1ApiPatchCustomResourceDefinitionRequest, type ApiextensionsV1ApiPatchCustomResourceDefinitionStatusRequest, type ApiextensionsV1ApiReadCustomResourceDefinitionRequest, type ApiextensionsV1ApiReadCustomResourceDefinitionStatusRequest, type ApiextensionsV1ApiReplaceCustomResourceDefinitionRequest, type ApiextensionsV1ApiReplaceCustomResourceDefinitionStatusRequest, ObjectApiextensionsV1Api as ApiextensionsV1Api, type ApiregistrationApiGetAPIGroupRequest, ObjectApiregistrationApi as ApiregistrationApi, type ApiregistrationV1ApiCreateAPIServiceRequest, type ApiregistrationV1ApiDeleteAPIServiceRequest, type ApiregistrationV1ApiDeleteCollectionAPIServiceRequest, type ApiregistrationV1ApiGetAPIResourcesRequest, type ApiregistrationV1ApiListAPIServiceRequest, type ApiregistrationV1ApiPatchAPIServiceRequest, type ApiregistrationV1ApiPatchAPIServiceStatusRequest, type ApiregistrationV1ApiReadAPIServiceRequest, type ApiregistrationV1ApiReadAPIServiceStatusRequest, type ApiregistrationV1ApiReplaceAPIServiceRequest, type ApiregistrationV1ApiReplaceAPIServiceStatusRequest, ObjectApiregistrationV1Api as ApiregistrationV1Api, type ApisApiGetAPIVersionsRequest, ObjectApisApi as ApisApi, type AppsApiGetAPIGroupRequest, ObjectAppsApi as AppsApi, type AppsV1ApiCreateNamespacedControllerRevisionRequest, type AppsV1ApiCreateNamespacedDaemonSetRequest, type AppsV1ApiCreateNamespacedDeploymentRequest, type AppsV1ApiCreateNamespacedReplicaSetRequest, type AppsV1ApiCreateNamespacedStatefulSetRequest, type AppsV1ApiDeleteCollectionNamespacedControllerRevisionRequest, type AppsV1ApiDeleteCollectionNamespacedDaemonSetRequest, type AppsV1ApiDeleteCollectionNamespacedDeploymentRequest, type AppsV1ApiDeleteCollectionNamespacedReplicaSetRequest, type AppsV1ApiDeleteCollectionNamespacedStatefulSetRequest, type AppsV1ApiDeleteNamespacedControllerRevisionRequest, type AppsV1ApiDeleteNamespacedDaemonSetRequest, type AppsV1ApiDeleteNamespacedDeploymentRequest, type AppsV1ApiDeleteNamespacedReplicaSetRequest, type AppsV1ApiDeleteNamespacedStatefulSetRequest, type AppsV1ApiGetAPIResourcesRequest, type AppsV1ApiListControllerRevisionForAllNamespacesRequest, type AppsV1ApiListDaemonSetForAllNamespacesRequest, type AppsV1ApiListDeploymentForAllNamespacesRequest, type AppsV1ApiListNamespacedControllerRevisionRequest, type AppsV1ApiListNamespacedDaemonSetRequest, type AppsV1ApiListNamespacedDeploymentRequest, type AppsV1ApiListNamespacedReplicaSetRequest, type AppsV1ApiListNamespacedStatefulSetRequest, type AppsV1ApiListReplicaSetForAllNamespacesRequest, type AppsV1ApiListStatefulSetForAllNamespacesRequest, type AppsV1ApiPatchNamespacedControllerRevisionRequest, type AppsV1ApiPatchNamespacedDaemonSetRequest, type AppsV1ApiPatchNamespacedDaemonSetStatusRequest, type AppsV1ApiPatchNamespacedDeploymentRequest, type AppsV1ApiPatchNamespacedDeploymentScaleRequest, type AppsV1ApiPatchNamespacedDeploymentStatusRequest, type AppsV1ApiPatchNamespacedReplicaSetRequest, type AppsV1ApiPatchNamespacedReplicaSetScaleRequest, type AppsV1ApiPatchNamespacedReplicaSetStatusRequest, type AppsV1ApiPatchNamespacedStatefulSetRequest, type AppsV1ApiPatchNamespacedStatefulSetScaleRequest, type AppsV1ApiPatchNamespacedStatefulSetStatusRequest, type AppsV1ApiReadNamespacedControllerRevisionRequest, type AppsV1ApiReadNamespacedDaemonSetRequest, type AppsV1ApiReadNamespacedDaemonSetStatusRequest, type AppsV1ApiReadNamespacedDeploymentRequest, type AppsV1ApiReadNamespacedDeploymentScaleRequest, type AppsV1ApiReadNamespacedDeploymentStatusRequest, type AppsV1ApiReadNamespacedReplicaSetRequest, type AppsV1ApiReadNamespacedReplicaSetScaleRequest, type AppsV1ApiReadNamespacedReplicaSetStatusRequest, type AppsV1ApiReadNamespacedStatefulSetRequest, type AppsV1ApiReadNamespacedStatefulSetScaleRequest, type AppsV1ApiReadNamespacedStatefulSetStatusRequest, type AppsV1ApiReplaceNamespacedControllerRevisionRequest, type AppsV1ApiReplaceNamespacedDaemonSetRequest, type AppsV1ApiReplaceNamespacedDaemonSetStatusRequest, type AppsV1ApiReplaceNamespacedDeploymentRequest, type AppsV1ApiReplaceNamespacedDeploymentScaleRequest, type AppsV1ApiReplaceNamespacedDeploymentStatusRequest, type AppsV1ApiReplaceNamespacedReplicaSetRequest, type AppsV1ApiReplaceNamespacedReplicaSetScaleRequest, type AppsV1ApiReplaceNamespacedReplicaSetStatusRequest, type AppsV1ApiReplaceNamespacedStatefulSetRequest, type AppsV1ApiReplaceNamespacedStatefulSetScaleRequest, type AppsV1ApiReplaceNamespacedStatefulSetStatusRequest, ObjectAppsV1Api as AppsV1Api, type AuthenticationApiGetAPIGroupRequest, ObjectAuthenticationApi as AuthenticationApi, type AuthenticationV1ApiCreateSelfSubjectReviewRequest, type AuthenticationV1ApiCreateTokenReviewRequest, type AuthenticationV1ApiGetAPIResourcesRequest, ObjectAuthenticationV1Api as AuthenticationV1Api, type AuthorizationApiGetAPIGroupRequest, ObjectAuthorizationApi as AuthorizationApi, type AuthorizationV1ApiCreateNamespacedLocalSubjectAccessReviewRequest, type AuthorizationV1ApiCreateSelfSubjectAccessReviewRequest, type AuthorizationV1ApiCreateSelfSubjectRulesReviewRequest, type AuthorizationV1ApiCreateSubjectAccessReviewRequest, type AuthorizationV1ApiGetAPIResourcesRequest, ObjectAuthorizationV1Api as AuthorizationV1Api, type AutoscalingApiGetAPIGroupRequest, ObjectAutoscalingApi as AutoscalingApi, type AutoscalingV1ApiCreateNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiDeleteNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiGetAPIResourcesRequest, type AutoscalingV1ApiListHorizontalPodAutoscalerForAllNamespacesRequest, type AutoscalingV1ApiListNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, ObjectAutoscalingV1Api as AutoscalingV1Api, type AutoscalingV2ApiCreateNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiDeleteNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiGetAPIResourcesRequest, type AutoscalingV2ApiListHorizontalPodAutoscalerForAllNamespacesRequest, type AutoscalingV2ApiListNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, ObjectAutoscalingV2Api as AutoscalingV2Api, type BatchApiGetAPIGroupRequest, ObjectBatchApi as BatchApi, type BatchV1ApiCreateNamespacedCronJobRequest, type BatchV1ApiCreateNamespacedJobRequest, type BatchV1ApiDeleteCollectionNamespacedCronJobRequest, type BatchV1ApiDeleteCollectionNamespacedJobRequest, type BatchV1ApiDeleteNamespacedCronJobRequest, type BatchV1ApiDeleteNamespacedJobRequest, type BatchV1ApiGetAPIResourcesRequest, type BatchV1ApiListCronJobForAllNamespacesRequest, type BatchV1ApiListJobForAllNamespacesRequest, type BatchV1ApiListNamespacedCronJobRequest, type BatchV1ApiListNamespacedJobRequest, type BatchV1ApiPatchNamespacedCronJobRequest, type BatchV1ApiPatchNamespacedCronJobStatusRequest, type BatchV1ApiPatchNamespacedJobRequest, type BatchV1ApiPatchNamespacedJobStatusRequest, type BatchV1ApiReadNamespacedCronJobRequest, type BatchV1ApiReadNamespacedCronJobStatusRequest, type BatchV1ApiReadNamespacedJobRequest, type BatchV1ApiReadNamespacedJobStatusRequest, type BatchV1ApiReplaceNamespacedCronJobRequest, type BatchV1ApiReplaceNamespacedCronJobStatusRequest, type BatchV1ApiReplaceNamespacedJobRequest, type BatchV1ApiReplaceNamespacedJobStatusRequest, ObjectBatchV1Api as BatchV1Api, type CertificatesApiGetAPIGroupRequest, ObjectCertificatesApi as CertificatesApi, type CertificatesV1ApiCreateCertificateSigningRequestRequest, type CertificatesV1ApiDeleteCertificateSigningRequestRequest, type CertificatesV1ApiDeleteCollectionCertificateSigningRequestRequest, type CertificatesV1ApiGetAPIResourcesRequest, type CertificatesV1ApiListCertificateSigningRequestRequest, type CertificatesV1ApiPatchCertificateSigningRequestRequest, type CertificatesV1ApiPatchCertificateSigningRequestApprovalRequest, type CertificatesV1ApiPatchCertificateSigningRequestStatusRequest, type CertificatesV1ApiReadCertificateSigningRequestRequest, type CertificatesV1ApiReadCertificateSigningRequestApprovalRequest, type CertificatesV1ApiReadCertificateSigningRequestStatusRequest, type CertificatesV1ApiReplaceCertificateSigningRequestRequest, type CertificatesV1ApiReplaceCertificateSigningRequestApprovalRequest, type CertificatesV1ApiReplaceCertificateSigningRequestStatusRequest, ObjectCertificatesV1Api as CertificatesV1Api, type CertificatesV1alpha1ApiCreateClusterTrustBundleRequest, type CertificatesV1alpha1ApiDeleteClusterTrustBundleRequest, type CertificatesV1alpha1ApiDeleteCollectionClusterTrustBundleRequest, type CertificatesV1alpha1ApiGetAPIResourcesRequest, type CertificatesV1alpha1ApiListClusterTrustBundleRequest, type CertificatesV1alpha1ApiPatchClusterTrustBundleRequest, type CertificatesV1alpha1ApiReadClusterTrustBundleRequest, type CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest, ObjectCertificatesV1alpha1Api as CertificatesV1alpha1Api, type CertificatesV1beta1ApiCreateClusterTrustBundleRequest, type CertificatesV1beta1ApiDeleteClusterTrustBundleRequest, type CertificatesV1beta1ApiDeleteCollectionClusterTrustBundleRequest, type CertificatesV1beta1ApiGetAPIResourcesRequest, type CertificatesV1beta1ApiListClusterTrustBundleRequest, type CertificatesV1beta1ApiPatchClusterTrustBundleRequest, type CertificatesV1beta1ApiReadClusterTrustBundleRequest, type CertificatesV1beta1ApiReplaceClusterTrustBundleRequest, ObjectCertificatesV1beta1Api as CertificatesV1beta1Api, type CoordinationApiGetAPIGroupRequest, ObjectCoordinationApi as CoordinationApi, type CoordinationV1ApiCreateNamespacedLeaseRequest, type CoordinationV1ApiDeleteCollectionNamespacedLeaseRequest, type CoordinationV1ApiDeleteNamespacedLeaseRequest, type CoordinationV1ApiGetAPIResourcesRequest, type CoordinationV1ApiListLeaseForAllNamespacesRequest, type CoordinationV1ApiListNamespacedLeaseRequest, type CoordinationV1ApiPatchNamespacedLeaseRequest, type CoordinationV1ApiReadNamespacedLeaseRequest, type CoordinationV1ApiReplaceNamespacedLeaseRequest, ObjectCoordinationV1Api as CoordinationV1Api, type CoordinationV1alpha2ApiCreateNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiDeleteCollectionNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiDeleteNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiGetAPIResourcesRequest, type CoordinationV1alpha2ApiListLeaseCandidateForAllNamespacesRequest, type CoordinationV1alpha2ApiListNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiPatchNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiReadNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiReplaceNamespacedLeaseCandidateRequest, ObjectCoordinationV1alpha2Api as CoordinationV1alpha2Api, type CoordinationV1beta1ApiCreateNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiDeleteCollectionNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiDeleteNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiGetAPIResourcesRequest, type CoordinationV1beta1ApiListLeaseCandidateForAllNamespacesRequest, type CoordinationV1beta1ApiListNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiPatchNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiReadNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiReplaceNamespacedLeaseCandidateRequest, ObjectCoordinationV1beta1Api as CoordinationV1beta1Api, type CoreApiGetAPIVersionsRequest, ObjectCoreApi as CoreApi, type CoreV1ApiConnectDeleteNamespacedPodProxyRequest, type CoreV1ApiConnectDeleteNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectDeleteNamespacedServiceProxyRequest, type CoreV1ApiConnectDeleteNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectDeleteNodeProxyRequest, type CoreV1ApiConnectDeleteNodeProxyWithPathRequest, type CoreV1ApiConnectGetNamespacedPodAttachRequest, type CoreV1ApiConnectGetNamespacedPodExecRequest, type CoreV1ApiConnectGetNamespacedPodPortforwardRequest, type CoreV1ApiConnectGetNamespacedPodProxyRequest, type CoreV1ApiConnectGetNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectGetNamespacedServiceProxyRequest, type CoreV1ApiConnectGetNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectGetNodeProxyRequest, type CoreV1ApiConnectGetNodeProxyWithPathRequest, type CoreV1ApiConnectHeadNamespacedPodProxyRequest, type CoreV1ApiConnectHeadNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectHeadNamespacedServiceProxyRequest, type CoreV1ApiConnectHeadNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectHeadNodeProxyRequest, type CoreV1ApiConnectHeadNodeProxyWithPathRequest, type CoreV1ApiConnectOptionsNamespacedPodProxyRequest, type CoreV1ApiConnectOptionsNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectOptionsNamespacedServiceProxyRequest, type CoreV1ApiConnectOptionsNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectOptionsNodeProxyRequest, type CoreV1ApiConnectOptionsNodeProxyWithPathRequest, type CoreV1ApiConnectPatchNamespacedPodProxyRequest, type CoreV1ApiConnectPatchNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPatchNamespacedServiceProxyRequest, type CoreV1ApiConnectPatchNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPatchNodeProxyRequest, type CoreV1ApiConnectPatchNodeProxyWithPathRequest, type CoreV1ApiConnectPostNamespacedPodAttachRequest, type CoreV1ApiConnectPostNamespacedPodExecRequest, type CoreV1ApiConnectPostNamespacedPodPortforwardRequest, type CoreV1ApiConnectPostNamespacedPodProxyRequest, type CoreV1ApiConnectPostNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPostNamespacedServiceProxyRequest, type CoreV1ApiConnectPostNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPostNodeProxyRequest, type CoreV1ApiConnectPostNodeProxyWithPathRequest, type CoreV1ApiConnectPutNamespacedPodProxyRequest, type CoreV1ApiConnectPutNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPutNamespacedServiceProxyRequest, type CoreV1ApiConnectPutNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPutNodeProxyRequest, type CoreV1ApiConnectPutNodeProxyWithPathRequest, type CoreV1ApiCreateNamespaceRequest, type CoreV1ApiCreateNamespacedBindingRequest, type CoreV1ApiCreateNamespacedConfigMapRequest, type CoreV1ApiCreateNamespacedEndpointsRequest, type CoreV1ApiCreateNamespacedEventRequest, type CoreV1ApiCreateNamespacedLimitRangeRequest, type CoreV1ApiCreateNamespacedPersistentVolumeClaimRequest, type CoreV1ApiCreateNamespacedPodRequest, type CoreV1ApiCreateNamespacedPodBindingRequest, type CoreV1ApiCreateNamespacedPodEvictionRequest, type CoreV1ApiCreateNamespacedPodTemplateRequest, type CoreV1ApiCreateNamespacedReplicationControllerRequest, type CoreV1ApiCreateNamespacedResourceQuotaRequest, type CoreV1ApiCreateNamespacedSecretRequest, type CoreV1ApiCreateNamespacedServiceRequest, type CoreV1ApiCreateNamespacedServiceAccountRequest, type CoreV1ApiCreateNamespacedServiceAccountTokenRequest, type CoreV1ApiCreateNodeRequest, type CoreV1ApiCreatePersistentVolumeRequest, type CoreV1ApiDeleteCollectionNamespacedConfigMapRequest, type CoreV1ApiDeleteCollectionNamespacedEndpointsRequest, type CoreV1ApiDeleteCollectionNamespacedEventRequest, type CoreV1ApiDeleteCollectionNamespacedLimitRangeRequest, type CoreV1ApiDeleteCollectionNamespacedPersistentVolumeClaimRequest, type CoreV1ApiDeleteCollectionNamespacedPodRequest, type CoreV1ApiDeleteCollectionNamespacedPodTemplateRequest, type CoreV1ApiDeleteCollectionNamespacedReplicationControllerRequest, type CoreV1ApiDeleteCollectionNamespacedResourceQuotaRequest, type CoreV1ApiDeleteCollectionNamespacedSecretRequest, type CoreV1ApiDeleteCollectionNamespacedServiceRequest, type CoreV1ApiDeleteCollectionNamespacedServiceAccountRequest, type CoreV1ApiDeleteCollectionNodeRequest, type CoreV1ApiDeleteCollectionPersistentVolumeRequest, type CoreV1ApiDeleteNamespaceRequest, type CoreV1ApiDeleteNamespacedConfigMapRequest, type CoreV1ApiDeleteNamespacedEndpointsRequest, type CoreV1ApiDeleteNamespacedEventRequest, type CoreV1ApiDeleteNamespacedLimitRangeRequest, type CoreV1ApiDeleteNamespacedPersistentVolumeClaimRequest, type CoreV1ApiDeleteNamespacedPodRequest, type CoreV1ApiDeleteNamespacedPodTemplateRequest, type CoreV1ApiDeleteNamespacedReplicationControllerRequest, type CoreV1ApiDeleteNamespacedResourceQuotaRequest, type CoreV1ApiDeleteNamespacedSecretRequest, type CoreV1ApiDeleteNamespacedServiceRequest, type CoreV1ApiDeleteNamespacedServiceAccountRequest, type CoreV1ApiDeleteNodeRequest, type CoreV1ApiDeletePersistentVolumeRequest, type CoreV1ApiGetAPIResourcesRequest, type CoreV1ApiListComponentStatusRequest, type CoreV1ApiListConfigMapForAllNamespacesRequest, type CoreV1ApiListEndpointsForAllNamespacesRequest, type CoreV1ApiListEventForAllNamespacesRequest, type CoreV1ApiListLimitRangeForAllNamespacesRequest, type CoreV1ApiListNamespaceRequest, type CoreV1ApiListNamespacedConfigMapRequest, type CoreV1ApiListNamespacedEndpointsRequest, type CoreV1ApiListNamespacedEventRequest, type CoreV1ApiListNamespacedLimitRangeRequest, type CoreV1ApiListNamespacedPersistentVolumeClaimRequest, type CoreV1ApiListNamespacedPodRequest, type CoreV1ApiListNamespacedPodTemplateRequest, type CoreV1ApiListNamespacedReplicationControllerRequest, type CoreV1ApiListNamespacedResourceQuotaRequest, type CoreV1ApiListNamespacedSecretRequest, type CoreV1ApiListNamespacedServiceRequest, type CoreV1ApiListNamespacedServiceAccountRequest, type CoreV1ApiListNodeRequest, type CoreV1ApiListPersistentVolumeRequest, type CoreV1ApiListPersistentVolumeClaimForAllNamespacesRequest, type CoreV1ApiListPodForAllNamespacesRequest, type CoreV1ApiListPodTemplateForAllNamespacesRequest, type CoreV1ApiListReplicationControllerForAllNamespacesRequest, type CoreV1ApiListResourceQuotaForAllNamespacesRequest, type CoreV1ApiListSecretForAllNamespacesRequest, type CoreV1ApiListServiceAccountForAllNamespacesRequest, type CoreV1ApiListServiceForAllNamespacesRequest, type CoreV1ApiPatchNamespaceRequest, type CoreV1ApiPatchNamespaceStatusRequest, type CoreV1ApiPatchNamespacedConfigMapRequest, type CoreV1ApiPatchNamespacedEndpointsRequest, type CoreV1ApiPatchNamespacedEventRequest, type CoreV1ApiPatchNamespacedLimitRangeRequest, type CoreV1ApiPatchNamespacedPersistentVolumeClaimRequest, type CoreV1ApiPatchNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiPatchNamespacedPodRequest, type CoreV1ApiPatchNamespacedPodEphemeralcontainersRequest, type CoreV1ApiPatchNamespacedPodResizeRequest, type CoreV1ApiPatchNamespacedPodStatusRequest, type CoreV1ApiPatchNamespacedPodTemplateRequest, type CoreV1ApiPatchNamespacedReplicationControllerRequest, type CoreV1ApiPatchNamespacedReplicationControllerScaleRequest, type CoreV1ApiPatchNamespacedReplicationControllerStatusRequest, type CoreV1ApiPatchNamespacedResourceQuotaRequest, type CoreV1ApiPatchNamespacedResourceQuotaStatusRequest, type CoreV1ApiPatchNamespacedSecretRequest, type CoreV1ApiPatchNamespacedServiceRequest, type CoreV1ApiPatchNamespacedServiceAccountRequest, type CoreV1ApiPatchNamespacedServiceStatusRequest, type CoreV1ApiPatchNodeRequest, type CoreV1ApiPatchNodeStatusRequest, type CoreV1ApiPatchPersistentVolumeRequest, type CoreV1ApiPatchPersistentVolumeStatusRequest, type CoreV1ApiReadComponentStatusRequest, type CoreV1ApiReadNamespaceRequest, type CoreV1ApiReadNamespaceStatusRequest, type CoreV1ApiReadNamespacedConfigMapRequest, type CoreV1ApiReadNamespacedEndpointsRequest, type CoreV1ApiReadNamespacedEventRequest, type CoreV1ApiReadNamespacedLimitRangeRequest, type CoreV1ApiReadNamespacedPersistentVolumeClaimRequest, type CoreV1ApiReadNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiReadNamespacedPodRequest, type CoreV1ApiReadNamespacedPodEphemeralcontainersRequest, type CoreV1ApiReadNamespacedPodLogRequest, type CoreV1ApiReadNamespacedPodResizeRequest, type CoreV1ApiReadNamespacedPodStatusRequest, type CoreV1ApiReadNamespacedPodTemplateRequest, type CoreV1ApiReadNamespacedReplicationControllerRequest, type CoreV1ApiReadNamespacedReplicationControllerScaleRequest, type CoreV1ApiReadNamespacedReplicationControllerStatusRequest, type CoreV1ApiReadNamespacedResourceQuotaRequest, type CoreV1ApiReadNamespacedResourceQuotaStatusRequest, type CoreV1ApiReadNamespacedSecretRequest, type CoreV1ApiReadNamespacedServiceRequest, type CoreV1ApiReadNamespacedServiceAccountRequest, type CoreV1ApiReadNamespacedServiceStatusRequest, type CoreV1ApiReadNodeRequest, type CoreV1ApiReadNodeStatusRequest, type CoreV1ApiReadPersistentVolumeRequest, type CoreV1ApiReadPersistentVolumeStatusRequest, type CoreV1ApiReplaceNamespaceRequest, type CoreV1ApiReplaceNamespaceFinalizeRequest, type CoreV1ApiReplaceNamespaceStatusRequest, type CoreV1ApiReplaceNamespacedConfigMapRequest, type CoreV1ApiReplaceNamespacedEndpointsRequest, type CoreV1ApiReplaceNamespacedEventRequest, type CoreV1ApiReplaceNamespacedLimitRangeRequest, type CoreV1ApiReplaceNamespacedPersistentVolumeClaimRequest, type CoreV1ApiReplaceNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiReplaceNamespacedPodRequest, type CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest, type CoreV1ApiReplaceNamespacedPodResizeRequest, type CoreV1ApiReplaceNamespacedPodStatusRequest, type CoreV1ApiReplaceNamespacedPodTemplateRequest, type CoreV1ApiReplaceNamespacedReplicationControllerRequest, type CoreV1ApiReplaceNamespacedReplicationControllerScaleRequest, type CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest, type CoreV1ApiReplaceNamespacedResourceQuotaRequest, type CoreV1ApiReplaceNamespacedResourceQuotaStatusRequest, type CoreV1ApiReplaceNamespacedSecretRequest, type CoreV1ApiReplaceNamespacedServiceRequest, type CoreV1ApiReplaceNamespacedServiceAccountRequest, type CoreV1ApiReplaceNamespacedServiceStatusRequest, type CoreV1ApiReplaceNodeRequest, type CoreV1ApiReplaceNodeStatusRequest, type CoreV1ApiReplacePersistentVolumeRequest, type CoreV1ApiReplacePersistentVolumeStatusRequest, ObjectCoreV1Api as CoreV1Api, type CustomObjectsApiCreateClusterCustomObjectRequest, type CustomObjectsApiCreateNamespacedCustomObjectRequest, type CustomObjectsApiDeleteClusterCustomObjectRequest, type CustomObjectsApiDeleteCollectionClusterCustomObjectRequest, type CustomObjectsApiDeleteCollectionNamespacedCustomObjectRequest, type CustomObjectsApiDeleteNamespacedCustomObjectRequest, type CustomObjectsApiGetAPIResourcesRequest, type CustomObjectsApiGetClusterCustomObjectRequest, type CustomObjectsApiGetClusterCustomObjectScaleRequest, type CustomObjectsApiGetClusterCustomObjectStatusRequest, type CustomObjectsApiGetNamespacedCustomObjectRequest, type CustomObjectsApiGetNamespacedCustomObjectScaleRequest, type CustomObjectsApiGetNamespacedCustomObjectStatusRequest, type CustomObjectsApiListClusterCustomObjectRequest, type CustomObjectsApiListCustomObjectForAllNamespacesRequest, type CustomObjectsApiListNamespacedCustomObjectRequest, type CustomObjectsApiPatchClusterCustomObjectRequest, type CustomObjectsApiPatchClusterCustomObjectScaleRequest, type CustomObjectsApiPatchClusterCustomObjectStatusRequest, type CustomObjectsApiPatchNamespacedCustomObjectRequest, type CustomObjectsApiPatchNamespacedCustomObjectScaleRequest, type CustomObjectsApiPatchNamespacedCustomObjectStatusRequest, type CustomObjectsApiReplaceClusterCustomObjectRequest, type CustomObjectsApiReplaceClusterCustomObjectScaleRequest, type CustomObjectsApiReplaceClusterCustomObjectStatusRequest, type CustomObjectsApiReplaceNamespacedCustomObjectRequest, type CustomObjectsApiReplaceNamespacedCustomObjectScaleRequest, type CustomObjectsApiReplaceNamespacedCustomObjectStatusRequest, ObjectCustomObjectsApi as CustomObjectsApi, type DiscoveryApiGetAPIGroupRequest, ObjectDiscoveryApi as DiscoveryApi, type DiscoveryV1ApiCreateNamespacedEndpointSliceRequest, type DiscoveryV1ApiDeleteCollectionNamespacedEndpointSliceRequest, type DiscoveryV1ApiDeleteNamespacedEndpointSliceRequest, type DiscoveryV1ApiGetAPIResourcesRequest, type DiscoveryV1ApiListEndpointSliceForAllNamespacesRequest, type DiscoveryV1ApiListNamespacedEndpointSliceRequest, type DiscoveryV1ApiPatchNamespacedEndpointSliceRequest, type DiscoveryV1ApiReadNamespacedEndpointSliceRequest, type DiscoveryV1ApiReplaceNamespacedEndpointSliceRequest, ObjectDiscoveryV1Api as DiscoveryV1Api, type EventsApiGetAPIGroupRequest, ObjectEventsApi as EventsApi, type EventsV1ApiCreateNamespacedEventRequest, type EventsV1ApiDeleteCollectionNamespacedEventRequest, type EventsV1ApiDeleteNamespacedEventRequest, type EventsV1ApiGetAPIResourcesRequest, type EventsV1ApiListEventForAllNamespacesRequest, type EventsV1ApiListNamespacedEventRequest, type EventsV1ApiPatchNamespacedEventRequest, type EventsV1ApiReadNamespacedEventRequest, type EventsV1ApiReplaceNamespacedEventRequest, ObjectEventsV1Api as EventsV1Api, type FlowcontrolApiserverApiGetAPIGroupRequest, ObjectFlowcontrolApiserverApi as FlowcontrolApiserverApi, type FlowcontrolApiserverV1ApiCreateFlowSchemaRequest, type FlowcontrolApiserverV1ApiCreatePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiDeleteCollectionFlowSchemaRequest, type FlowcontrolApiserverV1ApiDeleteCollectionPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiDeleteFlowSchemaRequest, type FlowcontrolApiserverV1ApiDeletePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiGetAPIResourcesRequest, type FlowcontrolApiserverV1ApiListFlowSchemaRequest, type FlowcontrolApiserverV1ApiListPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiPatchFlowSchemaRequest, type FlowcontrolApiserverV1ApiPatchFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationStatusRequest, type FlowcontrolApiserverV1ApiReadFlowSchemaRequest, type FlowcontrolApiserverV1ApiReadFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationStatusRequest, type FlowcontrolApiserverV1ApiReplaceFlowSchemaRequest, type FlowcontrolApiserverV1ApiReplaceFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationStatusRequest, ObjectFlowcontrolApiserverV1Api as FlowcontrolApiserverV1Api, type InternalApiserverApiGetAPIGroupRequest, ObjectInternalApiserverApi as InternalApiserverApi, type InternalApiserverV1alpha1ApiCreateStorageVersionRequest, type InternalApiserverV1alpha1ApiDeleteCollectionStorageVersionRequest, type InternalApiserverV1alpha1ApiDeleteStorageVersionRequest, type InternalApiserverV1alpha1ApiGetAPIResourcesRequest, type InternalApiserverV1alpha1ApiListStorageVersionRequest, type InternalApiserverV1alpha1ApiPatchStorageVersionRequest, type InternalApiserverV1alpha1ApiPatchStorageVersionStatusRequest, type InternalApiserverV1alpha1ApiReadStorageVersionRequest, type InternalApiserverV1alpha1ApiReadStorageVersionStatusRequest, type InternalApiserverV1alpha1ApiReplaceStorageVersionRequest, type InternalApiserverV1alpha1ApiReplaceStorageVersionStatusRequest, ObjectInternalApiserverV1alpha1Api as InternalApiserverV1alpha1Api, type LogsApiLogFileHandlerRequest, type LogsApiLogFileListHandlerRequest, ObjectLogsApi as LogsApi, type NetworkingApiGetAPIGroupRequest, ObjectNetworkingApi as NetworkingApi, type NetworkingV1ApiCreateIPAddressRequest, type NetworkingV1ApiCreateIngressClassRequest, type NetworkingV1ApiCreateNamespacedIngressRequest, type NetworkingV1ApiCreateNamespacedNetworkPolicyRequest, type NetworkingV1ApiCreateServiceCIDRRequest, type NetworkingV1ApiDeleteCollectionIPAddressRequest, type NetworkingV1ApiDeleteCollectionIngressClassRequest, type NetworkingV1ApiDeleteCollectionNamespacedIngressRequest, type NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest, type NetworkingV1ApiDeleteCollectionServiceCIDRRequest, type NetworkingV1ApiDeleteIPAddressRequest, type NetworkingV1ApiDeleteIngressClassRequest, type NetworkingV1ApiDeleteNamespacedIngressRequest, type NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest, type NetworkingV1ApiDeleteServiceCIDRRequest, type NetworkingV1ApiGetAPIResourcesRequest, type NetworkingV1ApiListIPAddressRequest, type NetworkingV1ApiListIngressClassRequest, type NetworkingV1ApiListIngressForAllNamespacesRequest, type NetworkingV1ApiListNamespacedIngressRequest, type NetworkingV1ApiListNamespacedNetworkPolicyRequest, type NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest, type NetworkingV1ApiListServiceCIDRRequest, type NetworkingV1ApiPatchIPAddressRequest, type NetworkingV1ApiPatchIngressClassRequest, type NetworkingV1ApiPatchNamespacedIngressRequest, type NetworkingV1ApiPatchNamespacedIngressStatusRequest, type NetworkingV1ApiPatchNamespacedNetworkPolicyRequest, type NetworkingV1ApiPatchServiceCIDRRequest, type NetworkingV1ApiPatchServiceCIDRStatusRequest, type NetworkingV1ApiReadIPAddressRequest, type NetworkingV1ApiReadIngressClassRequest, type NetworkingV1ApiReadNamespacedIngressRequest, type NetworkingV1ApiReadNamespacedIngressStatusRequest, type NetworkingV1ApiReadNamespacedNetworkPolicyRequest, type NetworkingV1ApiReadServiceCIDRRequest, type NetworkingV1ApiReadServiceCIDRStatusRequest, type NetworkingV1ApiReplaceIPAddressRequest, type NetworkingV1ApiReplaceIngressClassRequest, type NetworkingV1ApiReplaceNamespacedIngressRequest, type NetworkingV1ApiReplaceNamespacedIngressStatusRequest, type NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest, type NetworkingV1ApiReplaceServiceCIDRRequest, type NetworkingV1ApiReplaceServiceCIDRStatusRequest, ObjectNetworkingV1Api as NetworkingV1Api, type NetworkingV1beta1ApiCreateIPAddressRequest, type NetworkingV1beta1ApiCreateServiceCIDRRequest, type NetworkingV1beta1ApiDeleteCollectionIPAddressRequest, type NetworkingV1beta1ApiDeleteCollectionServiceCIDRRequest, type NetworkingV1beta1ApiDeleteIPAddressRequest, type NetworkingV1beta1ApiDeleteServiceCIDRRequest, type NetworkingV1beta1ApiGetAPIResourcesRequest, type NetworkingV1beta1ApiListIPAddressRequest, type NetworkingV1beta1ApiListServiceCIDRRequest, type NetworkingV1beta1ApiPatchIPAddressRequest, type NetworkingV1beta1ApiPatchServiceCIDRRequest, type NetworkingV1beta1ApiPatchServiceCIDRStatusRequest, type NetworkingV1beta1ApiReadIPAddressRequest, type NetworkingV1beta1ApiReadServiceCIDRRequest, type NetworkingV1beta1ApiReadServiceCIDRStatusRequest, type NetworkingV1beta1ApiReplaceIPAddressRequest, type NetworkingV1beta1ApiReplaceServiceCIDRRequest, type NetworkingV1beta1ApiReplaceServiceCIDRStatusRequest, ObjectNetworkingV1beta1Api as NetworkingV1beta1Api, type NodeApiGetAPIGroupRequest, ObjectNodeApi as NodeApi, type NodeV1ApiCreateRuntimeClassRequest, type NodeV1ApiDeleteCollectionRuntimeClassRequest, type NodeV1ApiDeleteRuntimeClassRequest, type NodeV1ApiGetAPIResourcesRequest, type NodeV1ApiListRuntimeClassRequest, type NodeV1ApiPatchRuntimeClassRequest, type NodeV1ApiReadRuntimeClassRequest, type NodeV1ApiReplaceRuntimeClassRequest, ObjectNodeV1Api as NodeV1Api, type OpenidApiGetServiceAccountIssuerOpenIDKeysetRequest, ObjectOpenidApi as OpenidApi, type PolicyApiGetAPIGroupRequest, ObjectPolicyApi as PolicyApi, type PolicyV1ApiCreateNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiDeleteCollectionNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiDeleteNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiGetAPIResourcesRequest, type PolicyV1ApiListNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiListPodDisruptionBudgetForAllNamespacesRequest, type PolicyV1ApiPatchNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiPatchNamespacedPodDisruptionBudgetStatusRequest, type PolicyV1ApiReadNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiReadNamespacedPodDisruptionBudgetStatusRequest, type PolicyV1ApiReplaceNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiReplaceNamespacedPodDisruptionBudgetStatusRequest, ObjectPolicyV1Api as PolicyV1Api, type RbacAuthorizationApiGetAPIGroupRequest, ObjectRbacAuthorizationApi as RbacAuthorizationApi, type RbacAuthorizationV1ApiCreateClusterRoleRequest, type RbacAuthorizationV1ApiCreateClusterRoleBindingRequest, type RbacAuthorizationV1ApiCreateNamespacedRoleRequest, type RbacAuthorizationV1ApiCreateNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiDeleteClusterRoleRequest, type RbacAuthorizationV1ApiDeleteClusterRoleBindingRequest, type RbacAuthorizationV1ApiDeleteCollectionClusterRoleRequest, type RbacAuthorizationV1ApiDeleteCollectionClusterRoleBindingRequest, type RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleRequest, type RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiDeleteNamespacedRoleRequest, type RbacAuthorizationV1ApiDeleteNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiGetAPIResourcesRequest, type RbacAuthorizationV1ApiListClusterRoleRequest, type RbacAuthorizationV1ApiListClusterRoleBindingRequest, type RbacAuthorizationV1ApiListNamespacedRoleRequest, type RbacAuthorizationV1ApiListNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiListRoleBindingForAllNamespacesRequest, type RbacAuthorizationV1ApiListRoleForAllNamespacesRequest, type RbacAuthorizationV1ApiPatchClusterRoleRequest, type RbacAuthorizationV1ApiPatchClusterRoleBindingRequest, type RbacAuthorizationV1ApiPatchNamespacedRoleRequest, type RbacAuthorizationV1ApiPatchNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiReadClusterRoleRequest, type RbacAuthorizationV1ApiReadClusterRoleBindingRequest, type RbacAuthorizationV1ApiReadNamespacedRoleRequest, type RbacAuthorizationV1ApiReadNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiReplaceClusterRoleRequest, type RbacAuthorizationV1ApiReplaceClusterRoleBindingRequest, type RbacAuthorizationV1ApiReplaceNamespacedRoleRequest, type RbacAuthorizationV1ApiReplaceNamespacedRoleBindingRequest, ObjectRbacAuthorizationV1Api as RbacAuthorizationV1Api, type ResourceApiGetAPIGroupRequest, ObjectResourceApi as ResourceApi, type ResourceV1alpha3ApiCreateDeviceClassRequest, type ResourceV1alpha3ApiCreateDeviceTaintRuleRequest, type ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest, type ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiCreateResourceSliceRequest, type ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest, type ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest, type ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest, type ResourceV1alpha3ApiDeleteDeviceClassRequest, type ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest, type ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest, type ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiDeleteResourceSliceRequest, type ResourceV1alpha3ApiGetAPIResourcesRequest, type ResourceV1alpha3ApiListDeviceClassRequest, type ResourceV1alpha3ApiListDeviceTaintRuleRequest, type ResourceV1alpha3ApiListNamespacedResourceClaimRequest, type ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest, type ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1alpha3ApiListResourceSliceRequest, type ResourceV1alpha3ApiPatchDeviceClassRequest, type ResourceV1alpha3ApiPatchDeviceTaintRuleRequest, type ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest, type ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiPatchResourceSliceRequest, type ResourceV1alpha3ApiReadDeviceClassRequest, type ResourceV1alpha3ApiReadDeviceTaintRuleRequest, type ResourceV1alpha3ApiReadNamespacedResourceClaimRequest, type ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiReadResourceSliceRequest, type ResourceV1alpha3ApiReplaceDeviceClassRequest, type ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest, type ResourceV1alpha3ApiReplaceNamespacedResourceClaimRequest, type ResourceV1alpha3ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiReplaceResourceSliceRequest, ObjectResourceV1alpha3Api as ResourceV1alpha3Api, type ResourceV1beta1ApiCreateDeviceClassRequest, type ResourceV1beta1ApiCreateNamespacedResourceClaimRequest, type ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiCreateResourceSliceRequest, type ResourceV1beta1ApiDeleteCollectionDeviceClassRequest, type ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiDeleteCollectionResourceSliceRequest, type ResourceV1beta1ApiDeleteDeviceClassRequest, type ResourceV1beta1ApiDeleteNamespacedResourceClaimRequest, type ResourceV1beta1ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiDeleteResourceSliceRequest, type ResourceV1beta1ApiGetAPIResourcesRequest, type ResourceV1beta1ApiListDeviceClassRequest, type ResourceV1beta1ApiListNamespacedResourceClaimRequest, type ResourceV1beta1ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiListResourceClaimForAllNamespacesRequest, type ResourceV1beta1ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1beta1ApiListResourceSliceRequest, type ResourceV1beta1ApiPatchDeviceClassRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiPatchResourceSliceRequest, type ResourceV1beta1ApiReadDeviceClassRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiReadResourceSliceRequest, type ResourceV1beta1ApiReplaceDeviceClassRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiReplaceResourceSliceRequest, ObjectResourceV1beta1Api as ResourceV1beta1Api, type ResourceV1beta2ApiCreateDeviceClassRequest, type ResourceV1beta2ApiCreateNamespacedResourceClaimRequest, type ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiCreateResourceSliceRequest, type ResourceV1beta2ApiDeleteCollectionDeviceClassRequest, type ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiDeleteCollectionResourceSliceRequest, type ResourceV1beta2ApiDeleteDeviceClassRequest, type ResourceV1beta2ApiDeleteNamespacedResourceClaimRequest, type ResourceV1beta2ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiDeleteResourceSliceRequest, type ResourceV1beta2ApiGetAPIResourcesRequest, type ResourceV1beta2ApiListDeviceClassRequest, type ResourceV1beta2ApiListNamespacedResourceClaimRequest, type ResourceV1beta2ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiListResourceClaimForAllNamespacesRequest, type ResourceV1beta2ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1beta2ApiListResourceSliceRequest, type ResourceV1beta2ApiPatchDeviceClassRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiPatchResourceSliceRequest, type ResourceV1beta2ApiReadDeviceClassRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiReadResourceSliceRequest, type ResourceV1beta2ApiReplaceDeviceClassRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiReplaceResourceSliceRequest, ObjectResourceV1beta2Api as ResourceV1beta2Api, type SchedulingApiGetAPIGroupRequest, ObjectSchedulingApi as SchedulingApi, type SchedulingV1ApiCreatePriorityClassRequest, type SchedulingV1ApiDeleteCollectionPriorityClassRequest, type SchedulingV1ApiDeletePriorityClassRequest, type SchedulingV1ApiGetAPIResourcesRequest, type SchedulingV1ApiListPriorityClassRequest, type SchedulingV1ApiPatchPriorityClassRequest, type SchedulingV1ApiReadPriorityClassRequest, type SchedulingV1ApiReplacePriorityClassRequest, ObjectSchedulingV1Api as SchedulingV1Api, type StorageApiGetAPIGroupRequest, ObjectStorageApi as StorageApi, type StorageV1ApiCreateCSIDriverRequest, type StorageV1ApiCreateCSINodeRequest, type StorageV1ApiCreateNamespacedCSIStorageCapacityRequest, type StorageV1ApiCreateStorageClassRequest, type StorageV1ApiCreateVolumeAttachmentRequest, type StorageV1ApiDeleteCSIDriverRequest, type StorageV1ApiDeleteCSINodeRequest, type StorageV1ApiDeleteCollectionCSIDriverRequest, type StorageV1ApiDeleteCollectionCSINodeRequest, type StorageV1ApiDeleteCollectionNamespacedCSIStorageCapacityRequest, type StorageV1ApiDeleteCollectionStorageClassRequest, type StorageV1ApiDeleteCollectionVolumeAttachmentRequest, type StorageV1ApiDeleteNamespacedCSIStorageCapacityRequest, type StorageV1ApiDeleteStorageClassRequest, type StorageV1ApiDeleteVolumeAttachmentRequest, type StorageV1ApiGetAPIResourcesRequest, type StorageV1ApiListCSIDriverRequest, type StorageV1ApiListCSINodeRequest, type StorageV1ApiListCSIStorageCapacityForAllNamespacesRequest, type StorageV1ApiListNamespacedCSIStorageCapacityRequest, type StorageV1ApiListStorageClassRequest, type StorageV1ApiListVolumeAttachmentRequest, type StorageV1ApiPatchCSIDriverRequest, type StorageV1ApiPatchCSINodeRequest, type StorageV1ApiPatchNamespacedCSIStorageCapacityRequest, type StorageV1ApiPatchStorageClassRequest, type StorageV1ApiPatchVolumeAttachmentRequest, type StorageV1ApiPatchVolumeAttachmentStatusRequest, type StorageV1ApiReadCSIDriverRequest, type StorageV1ApiReadCSINodeRequest, type StorageV1ApiReadNamespacedCSIStorageCapacityRequest, type StorageV1ApiReadStorageClassRequest, type StorageV1ApiReadVolumeAttachmentRequest, type StorageV1ApiReadVolumeAttachmentStatusRequest, type StorageV1ApiReplaceCSIDriverRequest, type StorageV1ApiReplaceCSINodeRequest, type StorageV1ApiReplaceNamespacedCSIStorageCapacityRequest, type StorageV1ApiReplaceStorageClassRequest, type StorageV1ApiReplaceVolumeAttachmentRequest, type StorageV1ApiReplaceVolumeAttachmentStatusRequest, ObjectStorageV1Api as StorageV1Api, type StorageV1alpha1ApiCreateVolumeAttributesClassRequest, type StorageV1alpha1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1alpha1ApiDeleteVolumeAttributesClassRequest, type StorageV1alpha1ApiGetAPIResourcesRequest, type StorageV1alpha1ApiListVolumeAttributesClassRequest, type StorageV1alpha1ApiPatchVolumeAttributesClassRequest, type StorageV1alpha1ApiReadVolumeAttributesClassRequest, type StorageV1alpha1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1alpha1Api as StorageV1alpha1Api, type StorageV1beta1ApiCreateVolumeAttributesClassRequest, type StorageV1beta1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1beta1ApiDeleteVolumeAttributesClassRequest, type StorageV1beta1ApiGetAPIResourcesRequest, type StorageV1beta1ApiListVolumeAttributesClassRequest, type StorageV1beta1ApiPatchVolumeAttributesClassRequest, type StorageV1beta1ApiReadVolumeAttributesClassRequest, type StorageV1beta1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1beta1Api as StorageV1beta1Api, type StoragemigrationApiGetAPIGroupRequest, ObjectStoragemigrationApi as StoragemigrationApi, type StoragemigrationV1alpha1ApiCreateStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiDeleteCollectionStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiDeleteStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiGetAPIResourcesRequest, type StoragemigrationV1alpha1ApiListStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiPatchStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiPatchStorageVersionMigrationStatusRequest, type StoragemigrationV1alpha1ApiReadStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiReadStorageVersionMigrationStatusRequest, type StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationStatusRequest, ObjectStoragemigrationV1alpha1Api as StoragemigrationV1alpha1Api, type VersionApiGetCodeRequest, ObjectVersionApi as VersionApi, type WellKnownApiGetServiceAccountIssuerOpenIDConfigurationRequest, ObjectWellKnownApi as WellKnownApi } from './types/ObjectParamAPI.js'; +export { type AdmissionregistrationApiGetAPIGroupRequest, ObjectAdmissionregistrationApi as AdmissionregistrationApi, type AdmissionregistrationV1ApiCreateMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiCreateValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteCollectionMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiDeleteValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiGetAPIResourcesRequest, type AdmissionregistrationV1ApiListMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiListValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiListValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiListValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiPatchMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiPatchValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReadMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiReadValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReplaceMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiReplaceValidatingWebhookConfigurationRequest, ObjectAdmissionregistrationV1Api as AdmissionregistrationV1Api, type AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiGetAPIResourcesRequest, type AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyBindingRequest, ObjectAdmissionregistrationV1alpha1Api as AdmissionregistrationV1alpha1Api, type AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiGetAPIResourcesRequest, type AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyBindingRequest, ObjectAdmissionregistrationV1beta1Api as AdmissionregistrationV1beta1Api, type ApiextensionsApiGetAPIGroupRequest, ObjectApiextensionsApi as ApiextensionsApi, type ApiextensionsV1ApiCreateCustomResourceDefinitionRequest, type ApiextensionsV1ApiDeleteCollectionCustomResourceDefinitionRequest, type ApiextensionsV1ApiDeleteCustomResourceDefinitionRequest, type ApiextensionsV1ApiGetAPIResourcesRequest, type ApiextensionsV1ApiListCustomResourceDefinitionRequest, type ApiextensionsV1ApiPatchCustomResourceDefinitionRequest, type ApiextensionsV1ApiPatchCustomResourceDefinitionStatusRequest, type ApiextensionsV1ApiReadCustomResourceDefinitionRequest, type ApiextensionsV1ApiReadCustomResourceDefinitionStatusRequest, type ApiextensionsV1ApiReplaceCustomResourceDefinitionRequest, type ApiextensionsV1ApiReplaceCustomResourceDefinitionStatusRequest, ObjectApiextensionsV1Api as ApiextensionsV1Api, type ApiregistrationApiGetAPIGroupRequest, ObjectApiregistrationApi as ApiregistrationApi, type ApiregistrationV1ApiCreateAPIServiceRequest, type ApiregistrationV1ApiDeleteAPIServiceRequest, type ApiregistrationV1ApiDeleteCollectionAPIServiceRequest, type ApiregistrationV1ApiGetAPIResourcesRequest, type ApiregistrationV1ApiListAPIServiceRequest, type ApiregistrationV1ApiPatchAPIServiceRequest, type ApiregistrationV1ApiPatchAPIServiceStatusRequest, type ApiregistrationV1ApiReadAPIServiceRequest, type ApiregistrationV1ApiReadAPIServiceStatusRequest, type ApiregistrationV1ApiReplaceAPIServiceRequest, type ApiregistrationV1ApiReplaceAPIServiceStatusRequest, ObjectApiregistrationV1Api as ApiregistrationV1Api, type ApisApiGetAPIVersionsRequest, ObjectApisApi as ApisApi, type AppsApiGetAPIGroupRequest, ObjectAppsApi as AppsApi, type AppsV1ApiCreateNamespacedControllerRevisionRequest, type AppsV1ApiCreateNamespacedDaemonSetRequest, type AppsV1ApiCreateNamespacedDeploymentRequest, type AppsV1ApiCreateNamespacedReplicaSetRequest, type AppsV1ApiCreateNamespacedStatefulSetRequest, type AppsV1ApiDeleteCollectionNamespacedControllerRevisionRequest, type AppsV1ApiDeleteCollectionNamespacedDaemonSetRequest, type AppsV1ApiDeleteCollectionNamespacedDeploymentRequest, type AppsV1ApiDeleteCollectionNamespacedReplicaSetRequest, type AppsV1ApiDeleteCollectionNamespacedStatefulSetRequest, type AppsV1ApiDeleteNamespacedControllerRevisionRequest, type AppsV1ApiDeleteNamespacedDaemonSetRequest, type AppsV1ApiDeleteNamespacedDeploymentRequest, type AppsV1ApiDeleteNamespacedReplicaSetRequest, type AppsV1ApiDeleteNamespacedStatefulSetRequest, type AppsV1ApiGetAPIResourcesRequest, type AppsV1ApiListControllerRevisionForAllNamespacesRequest, type AppsV1ApiListDaemonSetForAllNamespacesRequest, type AppsV1ApiListDeploymentForAllNamespacesRequest, type AppsV1ApiListNamespacedControllerRevisionRequest, type AppsV1ApiListNamespacedDaemonSetRequest, type AppsV1ApiListNamespacedDeploymentRequest, type AppsV1ApiListNamespacedReplicaSetRequest, type AppsV1ApiListNamespacedStatefulSetRequest, type AppsV1ApiListReplicaSetForAllNamespacesRequest, type AppsV1ApiListStatefulSetForAllNamespacesRequest, type AppsV1ApiPatchNamespacedControllerRevisionRequest, type AppsV1ApiPatchNamespacedDaemonSetRequest, type AppsV1ApiPatchNamespacedDaemonSetStatusRequest, type AppsV1ApiPatchNamespacedDeploymentRequest, type AppsV1ApiPatchNamespacedDeploymentScaleRequest, type AppsV1ApiPatchNamespacedDeploymentStatusRequest, type AppsV1ApiPatchNamespacedReplicaSetRequest, type AppsV1ApiPatchNamespacedReplicaSetScaleRequest, type AppsV1ApiPatchNamespacedReplicaSetStatusRequest, type AppsV1ApiPatchNamespacedStatefulSetRequest, type AppsV1ApiPatchNamespacedStatefulSetScaleRequest, type AppsV1ApiPatchNamespacedStatefulSetStatusRequest, type AppsV1ApiReadNamespacedControllerRevisionRequest, type AppsV1ApiReadNamespacedDaemonSetRequest, type AppsV1ApiReadNamespacedDaemonSetStatusRequest, type AppsV1ApiReadNamespacedDeploymentRequest, type AppsV1ApiReadNamespacedDeploymentScaleRequest, type AppsV1ApiReadNamespacedDeploymentStatusRequest, type AppsV1ApiReadNamespacedReplicaSetRequest, type AppsV1ApiReadNamespacedReplicaSetScaleRequest, type AppsV1ApiReadNamespacedReplicaSetStatusRequest, type AppsV1ApiReadNamespacedStatefulSetRequest, type AppsV1ApiReadNamespacedStatefulSetScaleRequest, type AppsV1ApiReadNamespacedStatefulSetStatusRequest, type AppsV1ApiReplaceNamespacedControllerRevisionRequest, type AppsV1ApiReplaceNamespacedDaemonSetRequest, type AppsV1ApiReplaceNamespacedDaemonSetStatusRequest, type AppsV1ApiReplaceNamespacedDeploymentRequest, type AppsV1ApiReplaceNamespacedDeploymentScaleRequest, type AppsV1ApiReplaceNamespacedDeploymentStatusRequest, type AppsV1ApiReplaceNamespacedReplicaSetRequest, type AppsV1ApiReplaceNamespacedReplicaSetScaleRequest, type AppsV1ApiReplaceNamespacedReplicaSetStatusRequest, type AppsV1ApiReplaceNamespacedStatefulSetRequest, type AppsV1ApiReplaceNamespacedStatefulSetScaleRequest, type AppsV1ApiReplaceNamespacedStatefulSetStatusRequest, ObjectAppsV1Api as AppsV1Api, type AuthenticationApiGetAPIGroupRequest, ObjectAuthenticationApi as AuthenticationApi, type AuthenticationV1ApiCreateSelfSubjectReviewRequest, type AuthenticationV1ApiCreateTokenReviewRequest, type AuthenticationV1ApiGetAPIResourcesRequest, ObjectAuthenticationV1Api as AuthenticationV1Api, type AuthorizationApiGetAPIGroupRequest, ObjectAuthorizationApi as AuthorizationApi, type AuthorizationV1ApiCreateNamespacedLocalSubjectAccessReviewRequest, type AuthorizationV1ApiCreateSelfSubjectAccessReviewRequest, type AuthorizationV1ApiCreateSelfSubjectRulesReviewRequest, type AuthorizationV1ApiCreateSubjectAccessReviewRequest, type AuthorizationV1ApiGetAPIResourcesRequest, ObjectAuthorizationV1Api as AuthorizationV1Api, type AutoscalingApiGetAPIGroupRequest, ObjectAutoscalingApi as AutoscalingApi, type AutoscalingV1ApiCreateNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiDeleteNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiGetAPIResourcesRequest, type AutoscalingV1ApiListHorizontalPodAutoscalerForAllNamespacesRequest, type AutoscalingV1ApiListNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, ObjectAutoscalingV1Api as AutoscalingV1Api, type AutoscalingV2ApiCreateNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiDeleteNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiGetAPIResourcesRequest, type AutoscalingV2ApiListHorizontalPodAutoscalerForAllNamespacesRequest, type AutoscalingV2ApiListNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, ObjectAutoscalingV2Api as AutoscalingV2Api, type BatchApiGetAPIGroupRequest, ObjectBatchApi as BatchApi, type BatchV1ApiCreateNamespacedCronJobRequest, type BatchV1ApiCreateNamespacedJobRequest, type BatchV1ApiDeleteCollectionNamespacedCronJobRequest, type BatchV1ApiDeleteCollectionNamespacedJobRequest, type BatchV1ApiDeleteNamespacedCronJobRequest, type BatchV1ApiDeleteNamespacedJobRequest, type BatchV1ApiGetAPIResourcesRequest, type BatchV1ApiListCronJobForAllNamespacesRequest, type BatchV1ApiListJobForAllNamespacesRequest, type BatchV1ApiListNamespacedCronJobRequest, type BatchV1ApiListNamespacedJobRequest, type BatchV1ApiPatchNamespacedCronJobRequest, type BatchV1ApiPatchNamespacedCronJobStatusRequest, type BatchV1ApiPatchNamespacedJobRequest, type BatchV1ApiPatchNamespacedJobStatusRequest, type BatchV1ApiReadNamespacedCronJobRequest, type BatchV1ApiReadNamespacedCronJobStatusRequest, type BatchV1ApiReadNamespacedJobRequest, type BatchV1ApiReadNamespacedJobStatusRequest, type BatchV1ApiReplaceNamespacedCronJobRequest, type BatchV1ApiReplaceNamespacedCronJobStatusRequest, type BatchV1ApiReplaceNamespacedJobRequest, type BatchV1ApiReplaceNamespacedJobStatusRequest, ObjectBatchV1Api as BatchV1Api, type CertificatesApiGetAPIGroupRequest, ObjectCertificatesApi as CertificatesApi, type CertificatesV1ApiCreateCertificateSigningRequestRequest, type CertificatesV1ApiDeleteCertificateSigningRequestRequest, type CertificatesV1ApiDeleteCollectionCertificateSigningRequestRequest, type CertificatesV1ApiGetAPIResourcesRequest, type CertificatesV1ApiListCertificateSigningRequestRequest, type CertificatesV1ApiPatchCertificateSigningRequestRequest, type CertificatesV1ApiPatchCertificateSigningRequestApprovalRequest, type CertificatesV1ApiPatchCertificateSigningRequestStatusRequest, type CertificatesV1ApiReadCertificateSigningRequestRequest, type CertificatesV1ApiReadCertificateSigningRequestApprovalRequest, type CertificatesV1ApiReadCertificateSigningRequestStatusRequest, type CertificatesV1ApiReplaceCertificateSigningRequestRequest, type CertificatesV1ApiReplaceCertificateSigningRequestApprovalRequest, type CertificatesV1ApiReplaceCertificateSigningRequestStatusRequest, ObjectCertificatesV1Api as CertificatesV1Api, type CertificatesV1alpha1ApiCreateClusterTrustBundleRequest, type CertificatesV1alpha1ApiCreateNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiDeleteClusterTrustBundleRequest, type CertificatesV1alpha1ApiDeleteCollectionClusterTrustBundleRequest, type CertificatesV1alpha1ApiDeleteCollectionNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiDeleteNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiGetAPIResourcesRequest, type CertificatesV1alpha1ApiListClusterTrustBundleRequest, type CertificatesV1alpha1ApiListNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiListPodCertificateRequestForAllNamespacesRequest, type CertificatesV1alpha1ApiPatchClusterTrustBundleRequest, type CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestStatusRequest, type CertificatesV1alpha1ApiReadClusterTrustBundleRequest, type CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestStatusRequest, type CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest, type CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestStatusRequest, ObjectCertificatesV1alpha1Api as CertificatesV1alpha1Api, type CertificatesV1beta1ApiCreateClusterTrustBundleRequest, type CertificatesV1beta1ApiDeleteClusterTrustBundleRequest, type CertificatesV1beta1ApiDeleteCollectionClusterTrustBundleRequest, type CertificatesV1beta1ApiGetAPIResourcesRequest, type CertificatesV1beta1ApiListClusterTrustBundleRequest, type CertificatesV1beta1ApiPatchClusterTrustBundleRequest, type CertificatesV1beta1ApiReadClusterTrustBundleRequest, type CertificatesV1beta1ApiReplaceClusterTrustBundleRequest, ObjectCertificatesV1beta1Api as CertificatesV1beta1Api, type CoordinationApiGetAPIGroupRequest, ObjectCoordinationApi as CoordinationApi, type CoordinationV1ApiCreateNamespacedLeaseRequest, type CoordinationV1ApiDeleteCollectionNamespacedLeaseRequest, type CoordinationV1ApiDeleteNamespacedLeaseRequest, type CoordinationV1ApiGetAPIResourcesRequest, type CoordinationV1ApiListLeaseForAllNamespacesRequest, type CoordinationV1ApiListNamespacedLeaseRequest, type CoordinationV1ApiPatchNamespacedLeaseRequest, type CoordinationV1ApiReadNamespacedLeaseRequest, type CoordinationV1ApiReplaceNamespacedLeaseRequest, ObjectCoordinationV1Api as CoordinationV1Api, type CoordinationV1alpha2ApiCreateNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiDeleteCollectionNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiDeleteNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiGetAPIResourcesRequest, type CoordinationV1alpha2ApiListLeaseCandidateForAllNamespacesRequest, type CoordinationV1alpha2ApiListNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiPatchNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiReadNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiReplaceNamespacedLeaseCandidateRequest, ObjectCoordinationV1alpha2Api as CoordinationV1alpha2Api, type CoordinationV1beta1ApiCreateNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiDeleteCollectionNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiDeleteNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiGetAPIResourcesRequest, type CoordinationV1beta1ApiListLeaseCandidateForAllNamespacesRequest, type CoordinationV1beta1ApiListNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiPatchNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiReadNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiReplaceNamespacedLeaseCandidateRequest, ObjectCoordinationV1beta1Api as CoordinationV1beta1Api, type CoreApiGetAPIVersionsRequest, ObjectCoreApi as CoreApi, type CoreV1ApiConnectDeleteNamespacedPodProxyRequest, type CoreV1ApiConnectDeleteNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectDeleteNamespacedServiceProxyRequest, type CoreV1ApiConnectDeleteNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectDeleteNodeProxyRequest, type CoreV1ApiConnectDeleteNodeProxyWithPathRequest, type CoreV1ApiConnectGetNamespacedPodAttachRequest, type CoreV1ApiConnectGetNamespacedPodExecRequest, type CoreV1ApiConnectGetNamespacedPodPortforwardRequest, type CoreV1ApiConnectGetNamespacedPodProxyRequest, type CoreV1ApiConnectGetNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectGetNamespacedServiceProxyRequest, type CoreV1ApiConnectGetNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectGetNodeProxyRequest, type CoreV1ApiConnectGetNodeProxyWithPathRequest, type CoreV1ApiConnectHeadNamespacedPodProxyRequest, type CoreV1ApiConnectHeadNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectHeadNamespacedServiceProxyRequest, type CoreV1ApiConnectHeadNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectHeadNodeProxyRequest, type CoreV1ApiConnectHeadNodeProxyWithPathRequest, type CoreV1ApiConnectOptionsNamespacedPodProxyRequest, type CoreV1ApiConnectOptionsNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectOptionsNamespacedServiceProxyRequest, type CoreV1ApiConnectOptionsNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectOptionsNodeProxyRequest, type CoreV1ApiConnectOptionsNodeProxyWithPathRequest, type CoreV1ApiConnectPatchNamespacedPodProxyRequest, type CoreV1ApiConnectPatchNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPatchNamespacedServiceProxyRequest, type CoreV1ApiConnectPatchNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPatchNodeProxyRequest, type CoreV1ApiConnectPatchNodeProxyWithPathRequest, type CoreV1ApiConnectPostNamespacedPodAttachRequest, type CoreV1ApiConnectPostNamespacedPodExecRequest, type CoreV1ApiConnectPostNamespacedPodPortforwardRequest, type CoreV1ApiConnectPostNamespacedPodProxyRequest, type CoreV1ApiConnectPostNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPostNamespacedServiceProxyRequest, type CoreV1ApiConnectPostNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPostNodeProxyRequest, type CoreV1ApiConnectPostNodeProxyWithPathRequest, type CoreV1ApiConnectPutNamespacedPodProxyRequest, type CoreV1ApiConnectPutNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPutNamespacedServiceProxyRequest, type CoreV1ApiConnectPutNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPutNodeProxyRequest, type CoreV1ApiConnectPutNodeProxyWithPathRequest, type CoreV1ApiCreateNamespaceRequest, type CoreV1ApiCreateNamespacedBindingRequest, type CoreV1ApiCreateNamespacedConfigMapRequest, type CoreV1ApiCreateNamespacedEndpointsRequest, type CoreV1ApiCreateNamespacedEventRequest, type CoreV1ApiCreateNamespacedLimitRangeRequest, type CoreV1ApiCreateNamespacedPersistentVolumeClaimRequest, type CoreV1ApiCreateNamespacedPodRequest, type CoreV1ApiCreateNamespacedPodBindingRequest, type CoreV1ApiCreateNamespacedPodEvictionRequest, type CoreV1ApiCreateNamespacedPodTemplateRequest, type CoreV1ApiCreateNamespacedReplicationControllerRequest, type CoreV1ApiCreateNamespacedResourceQuotaRequest, type CoreV1ApiCreateNamespacedSecretRequest, type CoreV1ApiCreateNamespacedServiceRequest, type CoreV1ApiCreateNamespacedServiceAccountRequest, type CoreV1ApiCreateNamespacedServiceAccountTokenRequest, type CoreV1ApiCreateNodeRequest, type CoreV1ApiCreatePersistentVolumeRequest, type CoreV1ApiDeleteCollectionNamespacedConfigMapRequest, type CoreV1ApiDeleteCollectionNamespacedEndpointsRequest, type CoreV1ApiDeleteCollectionNamespacedEventRequest, type CoreV1ApiDeleteCollectionNamespacedLimitRangeRequest, type CoreV1ApiDeleteCollectionNamespacedPersistentVolumeClaimRequest, type CoreV1ApiDeleteCollectionNamespacedPodRequest, type CoreV1ApiDeleteCollectionNamespacedPodTemplateRequest, type CoreV1ApiDeleteCollectionNamespacedReplicationControllerRequest, type CoreV1ApiDeleteCollectionNamespacedResourceQuotaRequest, type CoreV1ApiDeleteCollectionNamespacedSecretRequest, type CoreV1ApiDeleteCollectionNamespacedServiceRequest, type CoreV1ApiDeleteCollectionNamespacedServiceAccountRequest, type CoreV1ApiDeleteCollectionNodeRequest, type CoreV1ApiDeleteCollectionPersistentVolumeRequest, type CoreV1ApiDeleteNamespaceRequest, type CoreV1ApiDeleteNamespacedConfigMapRequest, type CoreV1ApiDeleteNamespacedEndpointsRequest, type CoreV1ApiDeleteNamespacedEventRequest, type CoreV1ApiDeleteNamespacedLimitRangeRequest, type CoreV1ApiDeleteNamespacedPersistentVolumeClaimRequest, type CoreV1ApiDeleteNamespacedPodRequest, type CoreV1ApiDeleteNamespacedPodTemplateRequest, type CoreV1ApiDeleteNamespacedReplicationControllerRequest, type CoreV1ApiDeleteNamespacedResourceQuotaRequest, type CoreV1ApiDeleteNamespacedSecretRequest, type CoreV1ApiDeleteNamespacedServiceRequest, type CoreV1ApiDeleteNamespacedServiceAccountRequest, type CoreV1ApiDeleteNodeRequest, type CoreV1ApiDeletePersistentVolumeRequest, type CoreV1ApiGetAPIResourcesRequest, type CoreV1ApiListComponentStatusRequest, type CoreV1ApiListConfigMapForAllNamespacesRequest, type CoreV1ApiListEndpointsForAllNamespacesRequest, type CoreV1ApiListEventForAllNamespacesRequest, type CoreV1ApiListLimitRangeForAllNamespacesRequest, type CoreV1ApiListNamespaceRequest, type CoreV1ApiListNamespacedConfigMapRequest, type CoreV1ApiListNamespacedEndpointsRequest, type CoreV1ApiListNamespacedEventRequest, type CoreV1ApiListNamespacedLimitRangeRequest, type CoreV1ApiListNamespacedPersistentVolumeClaimRequest, type CoreV1ApiListNamespacedPodRequest, type CoreV1ApiListNamespacedPodTemplateRequest, type CoreV1ApiListNamespacedReplicationControllerRequest, type CoreV1ApiListNamespacedResourceQuotaRequest, type CoreV1ApiListNamespacedSecretRequest, type CoreV1ApiListNamespacedServiceRequest, type CoreV1ApiListNamespacedServiceAccountRequest, type CoreV1ApiListNodeRequest, type CoreV1ApiListPersistentVolumeRequest, type CoreV1ApiListPersistentVolumeClaimForAllNamespacesRequest, type CoreV1ApiListPodForAllNamespacesRequest, type CoreV1ApiListPodTemplateForAllNamespacesRequest, type CoreV1ApiListReplicationControllerForAllNamespacesRequest, type CoreV1ApiListResourceQuotaForAllNamespacesRequest, type CoreV1ApiListSecretForAllNamespacesRequest, type CoreV1ApiListServiceAccountForAllNamespacesRequest, type CoreV1ApiListServiceForAllNamespacesRequest, type CoreV1ApiPatchNamespaceRequest, type CoreV1ApiPatchNamespaceStatusRequest, type CoreV1ApiPatchNamespacedConfigMapRequest, type CoreV1ApiPatchNamespacedEndpointsRequest, type CoreV1ApiPatchNamespacedEventRequest, type CoreV1ApiPatchNamespacedLimitRangeRequest, type CoreV1ApiPatchNamespacedPersistentVolumeClaimRequest, type CoreV1ApiPatchNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiPatchNamespacedPodRequest, type CoreV1ApiPatchNamespacedPodEphemeralcontainersRequest, type CoreV1ApiPatchNamespacedPodResizeRequest, type CoreV1ApiPatchNamespacedPodStatusRequest, type CoreV1ApiPatchNamespacedPodTemplateRequest, type CoreV1ApiPatchNamespacedReplicationControllerRequest, type CoreV1ApiPatchNamespacedReplicationControllerScaleRequest, type CoreV1ApiPatchNamespacedReplicationControllerStatusRequest, type CoreV1ApiPatchNamespacedResourceQuotaRequest, type CoreV1ApiPatchNamespacedResourceQuotaStatusRequest, type CoreV1ApiPatchNamespacedSecretRequest, type CoreV1ApiPatchNamespacedServiceRequest, type CoreV1ApiPatchNamespacedServiceAccountRequest, type CoreV1ApiPatchNamespacedServiceStatusRequest, type CoreV1ApiPatchNodeRequest, type CoreV1ApiPatchNodeStatusRequest, type CoreV1ApiPatchPersistentVolumeRequest, type CoreV1ApiPatchPersistentVolumeStatusRequest, type CoreV1ApiReadComponentStatusRequest, type CoreV1ApiReadNamespaceRequest, type CoreV1ApiReadNamespaceStatusRequest, type CoreV1ApiReadNamespacedConfigMapRequest, type CoreV1ApiReadNamespacedEndpointsRequest, type CoreV1ApiReadNamespacedEventRequest, type CoreV1ApiReadNamespacedLimitRangeRequest, type CoreV1ApiReadNamespacedPersistentVolumeClaimRequest, type CoreV1ApiReadNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiReadNamespacedPodRequest, type CoreV1ApiReadNamespacedPodEphemeralcontainersRequest, type CoreV1ApiReadNamespacedPodLogRequest, type CoreV1ApiReadNamespacedPodResizeRequest, type CoreV1ApiReadNamespacedPodStatusRequest, type CoreV1ApiReadNamespacedPodTemplateRequest, type CoreV1ApiReadNamespacedReplicationControllerRequest, type CoreV1ApiReadNamespacedReplicationControllerScaleRequest, type CoreV1ApiReadNamespacedReplicationControllerStatusRequest, type CoreV1ApiReadNamespacedResourceQuotaRequest, type CoreV1ApiReadNamespacedResourceQuotaStatusRequest, type CoreV1ApiReadNamespacedSecretRequest, type CoreV1ApiReadNamespacedServiceRequest, type CoreV1ApiReadNamespacedServiceAccountRequest, type CoreV1ApiReadNamespacedServiceStatusRequest, type CoreV1ApiReadNodeRequest, type CoreV1ApiReadNodeStatusRequest, type CoreV1ApiReadPersistentVolumeRequest, type CoreV1ApiReadPersistentVolumeStatusRequest, type CoreV1ApiReplaceNamespaceRequest, type CoreV1ApiReplaceNamespaceFinalizeRequest, type CoreV1ApiReplaceNamespaceStatusRequest, type CoreV1ApiReplaceNamespacedConfigMapRequest, type CoreV1ApiReplaceNamespacedEndpointsRequest, type CoreV1ApiReplaceNamespacedEventRequest, type CoreV1ApiReplaceNamespacedLimitRangeRequest, type CoreV1ApiReplaceNamespacedPersistentVolumeClaimRequest, type CoreV1ApiReplaceNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiReplaceNamespacedPodRequest, type CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest, type CoreV1ApiReplaceNamespacedPodResizeRequest, type CoreV1ApiReplaceNamespacedPodStatusRequest, type CoreV1ApiReplaceNamespacedPodTemplateRequest, type CoreV1ApiReplaceNamespacedReplicationControllerRequest, type CoreV1ApiReplaceNamespacedReplicationControllerScaleRequest, type CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest, type CoreV1ApiReplaceNamespacedResourceQuotaRequest, type CoreV1ApiReplaceNamespacedResourceQuotaStatusRequest, type CoreV1ApiReplaceNamespacedSecretRequest, type CoreV1ApiReplaceNamespacedServiceRequest, type CoreV1ApiReplaceNamespacedServiceAccountRequest, type CoreV1ApiReplaceNamespacedServiceStatusRequest, type CoreV1ApiReplaceNodeRequest, type CoreV1ApiReplaceNodeStatusRequest, type CoreV1ApiReplacePersistentVolumeRequest, type CoreV1ApiReplacePersistentVolumeStatusRequest, ObjectCoreV1Api as CoreV1Api, type CustomObjectsApiCreateClusterCustomObjectRequest, type CustomObjectsApiCreateNamespacedCustomObjectRequest, type CustomObjectsApiDeleteClusterCustomObjectRequest, type CustomObjectsApiDeleteCollectionClusterCustomObjectRequest, type CustomObjectsApiDeleteCollectionNamespacedCustomObjectRequest, type CustomObjectsApiDeleteNamespacedCustomObjectRequest, type CustomObjectsApiGetAPIResourcesRequest, type CustomObjectsApiGetClusterCustomObjectRequest, type CustomObjectsApiGetClusterCustomObjectScaleRequest, type CustomObjectsApiGetClusterCustomObjectStatusRequest, type CustomObjectsApiGetNamespacedCustomObjectRequest, type CustomObjectsApiGetNamespacedCustomObjectScaleRequest, type CustomObjectsApiGetNamespacedCustomObjectStatusRequest, type CustomObjectsApiListClusterCustomObjectRequest, type CustomObjectsApiListCustomObjectForAllNamespacesRequest, type CustomObjectsApiListNamespacedCustomObjectRequest, type CustomObjectsApiPatchClusterCustomObjectRequest, type CustomObjectsApiPatchClusterCustomObjectScaleRequest, type CustomObjectsApiPatchClusterCustomObjectStatusRequest, type CustomObjectsApiPatchNamespacedCustomObjectRequest, type CustomObjectsApiPatchNamespacedCustomObjectScaleRequest, type CustomObjectsApiPatchNamespacedCustomObjectStatusRequest, type CustomObjectsApiReplaceClusterCustomObjectRequest, type CustomObjectsApiReplaceClusterCustomObjectScaleRequest, type CustomObjectsApiReplaceClusterCustomObjectStatusRequest, type CustomObjectsApiReplaceNamespacedCustomObjectRequest, type CustomObjectsApiReplaceNamespacedCustomObjectScaleRequest, type CustomObjectsApiReplaceNamespacedCustomObjectStatusRequest, ObjectCustomObjectsApi as CustomObjectsApi, type DiscoveryApiGetAPIGroupRequest, ObjectDiscoveryApi as DiscoveryApi, type DiscoveryV1ApiCreateNamespacedEndpointSliceRequest, type DiscoveryV1ApiDeleteCollectionNamespacedEndpointSliceRequest, type DiscoveryV1ApiDeleteNamespacedEndpointSliceRequest, type DiscoveryV1ApiGetAPIResourcesRequest, type DiscoveryV1ApiListEndpointSliceForAllNamespacesRequest, type DiscoveryV1ApiListNamespacedEndpointSliceRequest, type DiscoveryV1ApiPatchNamespacedEndpointSliceRequest, type DiscoveryV1ApiReadNamespacedEndpointSliceRequest, type DiscoveryV1ApiReplaceNamespacedEndpointSliceRequest, ObjectDiscoveryV1Api as DiscoveryV1Api, type EventsApiGetAPIGroupRequest, ObjectEventsApi as EventsApi, type EventsV1ApiCreateNamespacedEventRequest, type EventsV1ApiDeleteCollectionNamespacedEventRequest, type EventsV1ApiDeleteNamespacedEventRequest, type EventsV1ApiGetAPIResourcesRequest, type EventsV1ApiListEventForAllNamespacesRequest, type EventsV1ApiListNamespacedEventRequest, type EventsV1ApiPatchNamespacedEventRequest, type EventsV1ApiReadNamespacedEventRequest, type EventsV1ApiReplaceNamespacedEventRequest, ObjectEventsV1Api as EventsV1Api, type FlowcontrolApiserverApiGetAPIGroupRequest, ObjectFlowcontrolApiserverApi as FlowcontrolApiserverApi, type FlowcontrolApiserverV1ApiCreateFlowSchemaRequest, type FlowcontrolApiserverV1ApiCreatePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiDeleteCollectionFlowSchemaRequest, type FlowcontrolApiserverV1ApiDeleteCollectionPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiDeleteFlowSchemaRequest, type FlowcontrolApiserverV1ApiDeletePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiGetAPIResourcesRequest, type FlowcontrolApiserverV1ApiListFlowSchemaRequest, type FlowcontrolApiserverV1ApiListPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiPatchFlowSchemaRequest, type FlowcontrolApiserverV1ApiPatchFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationStatusRequest, type FlowcontrolApiserverV1ApiReadFlowSchemaRequest, type FlowcontrolApiserverV1ApiReadFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationStatusRequest, type FlowcontrolApiserverV1ApiReplaceFlowSchemaRequest, type FlowcontrolApiserverV1ApiReplaceFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationStatusRequest, ObjectFlowcontrolApiserverV1Api as FlowcontrolApiserverV1Api, type InternalApiserverApiGetAPIGroupRequest, ObjectInternalApiserverApi as InternalApiserverApi, type InternalApiserverV1alpha1ApiCreateStorageVersionRequest, type InternalApiserverV1alpha1ApiDeleteCollectionStorageVersionRequest, type InternalApiserverV1alpha1ApiDeleteStorageVersionRequest, type InternalApiserverV1alpha1ApiGetAPIResourcesRequest, type InternalApiserverV1alpha1ApiListStorageVersionRequest, type InternalApiserverV1alpha1ApiPatchStorageVersionRequest, type InternalApiserverV1alpha1ApiPatchStorageVersionStatusRequest, type InternalApiserverV1alpha1ApiReadStorageVersionRequest, type InternalApiserverV1alpha1ApiReadStorageVersionStatusRequest, type InternalApiserverV1alpha1ApiReplaceStorageVersionRequest, type InternalApiserverV1alpha1ApiReplaceStorageVersionStatusRequest, ObjectInternalApiserverV1alpha1Api as InternalApiserverV1alpha1Api, type LogsApiLogFileHandlerRequest, type LogsApiLogFileListHandlerRequest, ObjectLogsApi as LogsApi, type NetworkingApiGetAPIGroupRequest, ObjectNetworkingApi as NetworkingApi, type NetworkingV1ApiCreateIPAddressRequest, type NetworkingV1ApiCreateIngressClassRequest, type NetworkingV1ApiCreateNamespacedIngressRequest, type NetworkingV1ApiCreateNamespacedNetworkPolicyRequest, type NetworkingV1ApiCreateServiceCIDRRequest, type NetworkingV1ApiDeleteCollectionIPAddressRequest, type NetworkingV1ApiDeleteCollectionIngressClassRequest, type NetworkingV1ApiDeleteCollectionNamespacedIngressRequest, type NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest, type NetworkingV1ApiDeleteCollectionServiceCIDRRequest, type NetworkingV1ApiDeleteIPAddressRequest, type NetworkingV1ApiDeleteIngressClassRequest, type NetworkingV1ApiDeleteNamespacedIngressRequest, type NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest, type NetworkingV1ApiDeleteServiceCIDRRequest, type NetworkingV1ApiGetAPIResourcesRequest, type NetworkingV1ApiListIPAddressRequest, type NetworkingV1ApiListIngressClassRequest, type NetworkingV1ApiListIngressForAllNamespacesRequest, type NetworkingV1ApiListNamespacedIngressRequest, type NetworkingV1ApiListNamespacedNetworkPolicyRequest, type NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest, type NetworkingV1ApiListServiceCIDRRequest, type NetworkingV1ApiPatchIPAddressRequest, type NetworkingV1ApiPatchIngressClassRequest, type NetworkingV1ApiPatchNamespacedIngressRequest, type NetworkingV1ApiPatchNamespacedIngressStatusRequest, type NetworkingV1ApiPatchNamespacedNetworkPolicyRequest, type NetworkingV1ApiPatchServiceCIDRRequest, type NetworkingV1ApiPatchServiceCIDRStatusRequest, type NetworkingV1ApiReadIPAddressRequest, type NetworkingV1ApiReadIngressClassRequest, type NetworkingV1ApiReadNamespacedIngressRequest, type NetworkingV1ApiReadNamespacedIngressStatusRequest, type NetworkingV1ApiReadNamespacedNetworkPolicyRequest, type NetworkingV1ApiReadServiceCIDRRequest, type NetworkingV1ApiReadServiceCIDRStatusRequest, type NetworkingV1ApiReplaceIPAddressRequest, type NetworkingV1ApiReplaceIngressClassRequest, type NetworkingV1ApiReplaceNamespacedIngressRequest, type NetworkingV1ApiReplaceNamespacedIngressStatusRequest, type NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest, type NetworkingV1ApiReplaceServiceCIDRRequest, type NetworkingV1ApiReplaceServiceCIDRStatusRequest, ObjectNetworkingV1Api as NetworkingV1Api, type NetworkingV1beta1ApiCreateIPAddressRequest, type NetworkingV1beta1ApiCreateServiceCIDRRequest, type NetworkingV1beta1ApiDeleteCollectionIPAddressRequest, type NetworkingV1beta1ApiDeleteCollectionServiceCIDRRequest, type NetworkingV1beta1ApiDeleteIPAddressRequest, type NetworkingV1beta1ApiDeleteServiceCIDRRequest, type NetworkingV1beta1ApiGetAPIResourcesRequest, type NetworkingV1beta1ApiListIPAddressRequest, type NetworkingV1beta1ApiListServiceCIDRRequest, type NetworkingV1beta1ApiPatchIPAddressRequest, type NetworkingV1beta1ApiPatchServiceCIDRRequest, type NetworkingV1beta1ApiPatchServiceCIDRStatusRequest, type NetworkingV1beta1ApiReadIPAddressRequest, type NetworkingV1beta1ApiReadServiceCIDRRequest, type NetworkingV1beta1ApiReadServiceCIDRStatusRequest, type NetworkingV1beta1ApiReplaceIPAddressRequest, type NetworkingV1beta1ApiReplaceServiceCIDRRequest, type NetworkingV1beta1ApiReplaceServiceCIDRStatusRequest, ObjectNetworkingV1beta1Api as NetworkingV1beta1Api, type NodeApiGetAPIGroupRequest, ObjectNodeApi as NodeApi, type NodeV1ApiCreateRuntimeClassRequest, type NodeV1ApiDeleteCollectionRuntimeClassRequest, type NodeV1ApiDeleteRuntimeClassRequest, type NodeV1ApiGetAPIResourcesRequest, type NodeV1ApiListRuntimeClassRequest, type NodeV1ApiPatchRuntimeClassRequest, type NodeV1ApiReadRuntimeClassRequest, type NodeV1ApiReplaceRuntimeClassRequest, ObjectNodeV1Api as NodeV1Api, type OpenidApiGetServiceAccountIssuerOpenIDKeysetRequest, ObjectOpenidApi as OpenidApi, type PolicyApiGetAPIGroupRequest, ObjectPolicyApi as PolicyApi, type PolicyV1ApiCreateNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiDeleteCollectionNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiDeleteNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiGetAPIResourcesRequest, type PolicyV1ApiListNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiListPodDisruptionBudgetForAllNamespacesRequest, type PolicyV1ApiPatchNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiPatchNamespacedPodDisruptionBudgetStatusRequest, type PolicyV1ApiReadNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiReadNamespacedPodDisruptionBudgetStatusRequest, type PolicyV1ApiReplaceNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiReplaceNamespacedPodDisruptionBudgetStatusRequest, ObjectPolicyV1Api as PolicyV1Api, type RbacAuthorizationApiGetAPIGroupRequest, ObjectRbacAuthorizationApi as RbacAuthorizationApi, type RbacAuthorizationV1ApiCreateClusterRoleRequest, type RbacAuthorizationV1ApiCreateClusterRoleBindingRequest, type RbacAuthorizationV1ApiCreateNamespacedRoleRequest, type RbacAuthorizationV1ApiCreateNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiDeleteClusterRoleRequest, type RbacAuthorizationV1ApiDeleteClusterRoleBindingRequest, type RbacAuthorizationV1ApiDeleteCollectionClusterRoleRequest, type RbacAuthorizationV1ApiDeleteCollectionClusterRoleBindingRequest, type RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleRequest, type RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiDeleteNamespacedRoleRequest, type RbacAuthorizationV1ApiDeleteNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiGetAPIResourcesRequest, type RbacAuthorizationV1ApiListClusterRoleRequest, type RbacAuthorizationV1ApiListClusterRoleBindingRequest, type RbacAuthorizationV1ApiListNamespacedRoleRequest, type RbacAuthorizationV1ApiListNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiListRoleBindingForAllNamespacesRequest, type RbacAuthorizationV1ApiListRoleForAllNamespacesRequest, type RbacAuthorizationV1ApiPatchClusterRoleRequest, type RbacAuthorizationV1ApiPatchClusterRoleBindingRequest, type RbacAuthorizationV1ApiPatchNamespacedRoleRequest, type RbacAuthorizationV1ApiPatchNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiReadClusterRoleRequest, type RbacAuthorizationV1ApiReadClusterRoleBindingRequest, type RbacAuthorizationV1ApiReadNamespacedRoleRequest, type RbacAuthorizationV1ApiReadNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiReplaceClusterRoleRequest, type RbacAuthorizationV1ApiReplaceClusterRoleBindingRequest, type RbacAuthorizationV1ApiReplaceNamespacedRoleRequest, type RbacAuthorizationV1ApiReplaceNamespacedRoleBindingRequest, ObjectRbacAuthorizationV1Api as RbacAuthorizationV1Api, type ResourceApiGetAPIGroupRequest, ObjectResourceApi as ResourceApi, type ResourceV1ApiCreateDeviceClassRequest, type ResourceV1ApiCreateNamespacedResourceClaimRequest, type ResourceV1ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1ApiCreateResourceSliceRequest, type ResourceV1ApiDeleteCollectionDeviceClassRequest, type ResourceV1ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1ApiDeleteCollectionResourceSliceRequest, type ResourceV1ApiDeleteDeviceClassRequest, type ResourceV1ApiDeleteNamespacedResourceClaimRequest, type ResourceV1ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1ApiDeleteResourceSliceRequest, type ResourceV1ApiGetAPIResourcesRequest, type ResourceV1ApiListDeviceClassRequest, type ResourceV1ApiListNamespacedResourceClaimRequest, type ResourceV1ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1ApiListResourceClaimForAllNamespacesRequest, type ResourceV1ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1ApiListResourceSliceRequest, type ResourceV1ApiPatchDeviceClassRequest, type ResourceV1ApiPatchNamespacedResourceClaimRequest, type ResourceV1ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1ApiPatchResourceSliceRequest, type ResourceV1ApiReadDeviceClassRequest, type ResourceV1ApiReadNamespacedResourceClaimRequest, type ResourceV1ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1ApiReadResourceSliceRequest, type ResourceV1ApiReplaceDeviceClassRequest, type ResourceV1ApiReplaceNamespacedResourceClaimRequest, type ResourceV1ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1ApiReplaceResourceSliceRequest, ObjectResourceV1Api as ResourceV1Api, type ResourceV1alpha3ApiCreateDeviceTaintRuleRequest, type ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest, type ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest, type ResourceV1alpha3ApiGetAPIResourcesRequest, type ResourceV1alpha3ApiListDeviceTaintRuleRequest, type ResourceV1alpha3ApiPatchDeviceTaintRuleRequest, type ResourceV1alpha3ApiReadDeviceTaintRuleRequest, type ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest, ObjectResourceV1alpha3Api as ResourceV1alpha3Api, type ResourceV1beta1ApiCreateDeviceClassRequest, type ResourceV1beta1ApiCreateNamespacedResourceClaimRequest, type ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiCreateResourceSliceRequest, type ResourceV1beta1ApiDeleteCollectionDeviceClassRequest, type ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiDeleteCollectionResourceSliceRequest, type ResourceV1beta1ApiDeleteDeviceClassRequest, type ResourceV1beta1ApiDeleteNamespacedResourceClaimRequest, type ResourceV1beta1ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiDeleteResourceSliceRequest, type ResourceV1beta1ApiGetAPIResourcesRequest, type ResourceV1beta1ApiListDeviceClassRequest, type ResourceV1beta1ApiListNamespacedResourceClaimRequest, type ResourceV1beta1ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiListResourceClaimForAllNamespacesRequest, type ResourceV1beta1ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1beta1ApiListResourceSliceRequest, type ResourceV1beta1ApiPatchDeviceClassRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiPatchResourceSliceRequest, type ResourceV1beta1ApiReadDeviceClassRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiReadResourceSliceRequest, type ResourceV1beta1ApiReplaceDeviceClassRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiReplaceResourceSliceRequest, ObjectResourceV1beta1Api as ResourceV1beta1Api, type ResourceV1beta2ApiCreateDeviceClassRequest, type ResourceV1beta2ApiCreateNamespacedResourceClaimRequest, type ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiCreateResourceSliceRequest, type ResourceV1beta2ApiDeleteCollectionDeviceClassRequest, type ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiDeleteCollectionResourceSliceRequest, type ResourceV1beta2ApiDeleteDeviceClassRequest, type ResourceV1beta2ApiDeleteNamespacedResourceClaimRequest, type ResourceV1beta2ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiDeleteResourceSliceRequest, type ResourceV1beta2ApiGetAPIResourcesRequest, type ResourceV1beta2ApiListDeviceClassRequest, type ResourceV1beta2ApiListNamespacedResourceClaimRequest, type ResourceV1beta2ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiListResourceClaimForAllNamespacesRequest, type ResourceV1beta2ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1beta2ApiListResourceSliceRequest, type ResourceV1beta2ApiPatchDeviceClassRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiPatchResourceSliceRequest, type ResourceV1beta2ApiReadDeviceClassRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiReadResourceSliceRequest, type ResourceV1beta2ApiReplaceDeviceClassRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiReplaceResourceSliceRequest, ObjectResourceV1beta2Api as ResourceV1beta2Api, type SchedulingApiGetAPIGroupRequest, ObjectSchedulingApi as SchedulingApi, type SchedulingV1ApiCreatePriorityClassRequest, type SchedulingV1ApiDeleteCollectionPriorityClassRequest, type SchedulingV1ApiDeletePriorityClassRequest, type SchedulingV1ApiGetAPIResourcesRequest, type SchedulingV1ApiListPriorityClassRequest, type SchedulingV1ApiPatchPriorityClassRequest, type SchedulingV1ApiReadPriorityClassRequest, type SchedulingV1ApiReplacePriorityClassRequest, ObjectSchedulingV1Api as SchedulingV1Api, type StorageApiGetAPIGroupRequest, ObjectStorageApi as StorageApi, type StorageV1ApiCreateCSIDriverRequest, type StorageV1ApiCreateCSINodeRequest, type StorageV1ApiCreateNamespacedCSIStorageCapacityRequest, type StorageV1ApiCreateStorageClassRequest, type StorageV1ApiCreateVolumeAttachmentRequest, type StorageV1ApiCreateVolumeAttributesClassRequest, type StorageV1ApiDeleteCSIDriverRequest, type StorageV1ApiDeleteCSINodeRequest, type StorageV1ApiDeleteCollectionCSIDriverRequest, type StorageV1ApiDeleteCollectionCSINodeRequest, type StorageV1ApiDeleteCollectionNamespacedCSIStorageCapacityRequest, type StorageV1ApiDeleteCollectionStorageClassRequest, type StorageV1ApiDeleteCollectionVolumeAttachmentRequest, type StorageV1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1ApiDeleteNamespacedCSIStorageCapacityRequest, type StorageV1ApiDeleteStorageClassRequest, type StorageV1ApiDeleteVolumeAttachmentRequest, type StorageV1ApiDeleteVolumeAttributesClassRequest, type StorageV1ApiGetAPIResourcesRequest, type StorageV1ApiListCSIDriverRequest, type StorageV1ApiListCSINodeRequest, type StorageV1ApiListCSIStorageCapacityForAllNamespacesRequest, type StorageV1ApiListNamespacedCSIStorageCapacityRequest, type StorageV1ApiListStorageClassRequest, type StorageV1ApiListVolumeAttachmentRequest, type StorageV1ApiListVolumeAttributesClassRequest, type StorageV1ApiPatchCSIDriverRequest, type StorageV1ApiPatchCSINodeRequest, type StorageV1ApiPatchNamespacedCSIStorageCapacityRequest, type StorageV1ApiPatchStorageClassRequest, type StorageV1ApiPatchVolumeAttachmentRequest, type StorageV1ApiPatchVolumeAttachmentStatusRequest, type StorageV1ApiPatchVolumeAttributesClassRequest, type StorageV1ApiReadCSIDriverRequest, type StorageV1ApiReadCSINodeRequest, type StorageV1ApiReadNamespacedCSIStorageCapacityRequest, type StorageV1ApiReadStorageClassRequest, type StorageV1ApiReadVolumeAttachmentRequest, type StorageV1ApiReadVolumeAttachmentStatusRequest, type StorageV1ApiReadVolumeAttributesClassRequest, type StorageV1ApiReplaceCSIDriverRequest, type StorageV1ApiReplaceCSINodeRequest, type StorageV1ApiReplaceNamespacedCSIStorageCapacityRequest, type StorageV1ApiReplaceStorageClassRequest, type StorageV1ApiReplaceVolumeAttachmentRequest, type StorageV1ApiReplaceVolumeAttachmentStatusRequest, type StorageV1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1Api as StorageV1Api, type StorageV1alpha1ApiCreateVolumeAttributesClassRequest, type StorageV1alpha1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1alpha1ApiDeleteVolumeAttributesClassRequest, type StorageV1alpha1ApiGetAPIResourcesRequest, type StorageV1alpha1ApiListVolumeAttributesClassRequest, type StorageV1alpha1ApiPatchVolumeAttributesClassRequest, type StorageV1alpha1ApiReadVolumeAttributesClassRequest, type StorageV1alpha1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1alpha1Api as StorageV1alpha1Api, type StorageV1beta1ApiCreateVolumeAttributesClassRequest, type StorageV1beta1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1beta1ApiDeleteVolumeAttributesClassRequest, type StorageV1beta1ApiGetAPIResourcesRequest, type StorageV1beta1ApiListVolumeAttributesClassRequest, type StorageV1beta1ApiPatchVolumeAttributesClassRequest, type StorageV1beta1ApiReadVolumeAttributesClassRequest, type StorageV1beta1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1beta1Api as StorageV1beta1Api, type StoragemigrationApiGetAPIGroupRequest, ObjectStoragemigrationApi as StoragemigrationApi, type StoragemigrationV1alpha1ApiCreateStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiDeleteCollectionStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiDeleteStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiGetAPIResourcesRequest, type StoragemigrationV1alpha1ApiListStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiPatchStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiPatchStorageVersionMigrationStatusRequest, type StoragemigrationV1alpha1ApiReadStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiReadStorageVersionMigrationStatusRequest, type StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationStatusRequest, ObjectStoragemigrationV1alpha1Api as StoragemigrationV1alpha1Api, type VersionApiGetCodeRequest, ObjectVersionApi as VersionApi, type WellKnownApiGetServiceAccountIssuerOpenIDConfigurationRequest, ObjectWellKnownApi as WellKnownApi } from './types/ObjectParamAPI.js'; diff --git a/src/gen/models/AdmissionregistrationV1ServiceReference.ts b/src/gen/models/AdmissionregistrationV1ServiceReference.ts index 1226a3684a..24db4d98eb 100644 --- a/src/gen/models/AdmissionregistrationV1ServiceReference.ts +++ b/src/gen/models/AdmissionregistrationV1ServiceReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/AdmissionregistrationV1WebhookClientConfig.ts b/src/gen/models/AdmissionregistrationV1WebhookClientConfig.ts index 44691b5719..d48d13abb7 100644 --- a/src/gen/models/AdmissionregistrationV1WebhookClientConfig.ts +++ b/src/gen/models/AdmissionregistrationV1WebhookClientConfig.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ApiextensionsV1ServiceReference.ts b/src/gen/models/ApiextensionsV1ServiceReference.ts index 1f92efb04a..8d1af52d3b 100644 --- a/src/gen/models/ApiextensionsV1ServiceReference.ts +++ b/src/gen/models/ApiextensionsV1ServiceReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ApiextensionsV1WebhookClientConfig.ts b/src/gen/models/ApiextensionsV1WebhookClientConfig.ts index 18debc2bcf..99bbe8577c 100644 --- a/src/gen/models/ApiextensionsV1WebhookClientConfig.ts +++ b/src/gen/models/ApiextensionsV1WebhookClientConfig.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ApiregistrationV1ServiceReference.ts b/src/gen/models/ApiregistrationV1ServiceReference.ts index e75dd2fe1e..fa120e8637 100644 --- a/src/gen/models/ApiregistrationV1ServiceReference.ts +++ b/src/gen/models/ApiregistrationV1ServiceReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/AuthenticationV1TokenRequest.ts b/src/gen/models/AuthenticationV1TokenRequest.ts index 9f9b5945f1..7228292598 100644 --- a/src/gen/models/AuthenticationV1TokenRequest.ts +++ b/src/gen/models/AuthenticationV1TokenRequest.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1EndpointPort.ts b/src/gen/models/CoreV1EndpointPort.ts index 232e532d53..9725a3c9f9 100644 --- a/src/gen/models/CoreV1EndpointPort.ts +++ b/src/gen/models/CoreV1EndpointPort.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1Event.ts b/src/gen/models/CoreV1Event.ts index 880c2030ff..3aa6301d02 100644 --- a/src/gen/models/CoreV1Event.ts +++ b/src/gen/models/CoreV1Event.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1EventList.ts b/src/gen/models/CoreV1EventList.ts index f759461d95..e259c06d95 100644 --- a/src/gen/models/CoreV1EventList.ts +++ b/src/gen/models/CoreV1EventList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1EventSeries.ts b/src/gen/models/CoreV1EventSeries.ts index 22ef163cb8..08cd7e423b 100644 --- a/src/gen/models/CoreV1EventSeries.ts +++ b/src/gen/models/CoreV1EventSeries.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1ResourceClaim.ts b/src/gen/models/CoreV1ResourceClaim.ts new file mode 100644 index 0000000000..2efafb722e --- /dev/null +++ b/src/gen/models/CoreV1ResourceClaim.ts @@ -0,0 +1,52 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* ResourceClaim references one entry in PodSpec.ResourceClaims. +*/ +export class 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. + */ + 'name': string; + /** + * 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. + */ + 'request'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + }, + { + "name": "request", + "baseName": "request", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return CoreV1ResourceClaim.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/DiscoveryV1EndpointPort.ts b/src/gen/models/DiscoveryV1EndpointPort.ts index 2f3e79a4c5..95a1ad3f4a 100644 --- a/src/gen/models/DiscoveryV1EndpointPort.ts +++ b/src/gen/models/DiscoveryV1EndpointPort.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/EventsV1Event.ts b/src/gen/models/EventsV1Event.ts index 30be70d395..1d970555bf 100644 --- a/src/gen/models/EventsV1Event.ts +++ b/src/gen/models/EventsV1Event.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/EventsV1EventList.ts b/src/gen/models/EventsV1EventList.ts index 9b3623ffbe..4ac25ac88b 100644 --- a/src/gen/models/EventsV1EventList.ts +++ b/src/gen/models/EventsV1EventList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/EventsV1EventSeries.ts b/src/gen/models/EventsV1EventSeries.ts index c6dfbe2256..f9f96f70ff 100644 --- a/src/gen/models/EventsV1EventSeries.ts +++ b/src/gen/models/EventsV1EventSeries.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/FlowcontrolV1Subject.ts b/src/gen/models/FlowcontrolV1Subject.ts index 9e1ae01d91..fe16012bd3 100644 --- a/src/gen/models/FlowcontrolV1Subject.ts +++ b/src/gen/models/FlowcontrolV1Subject.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ObjectSerializer.ts b/src/gen/models/ObjectSerializer.ts index c0c8bc6fb4..4ce43caedd 100644 --- a/src/gen/models/ObjectSerializer.ts +++ b/src/gen/models/ObjectSerializer.ts @@ -8,12 +8,14 @@ export * from '../models/CoreV1EndpointPort.js'; export * from '../models/CoreV1Event.js'; export * from '../models/CoreV1EventList.js'; export * from '../models/CoreV1EventSeries.js'; +export * from '../models/CoreV1ResourceClaim.js'; export * from '../models/DiscoveryV1EndpointPort.js'; export * from '../models/EventsV1Event.js'; export * from '../models/EventsV1EventList.js'; export * from '../models/EventsV1EventSeries.js'; export * from '../models/FlowcontrolV1Subject.js'; export * from '../models/RbacV1Subject.js'; +export * from '../models/ResourceV1ResourceClaim.js'; export * from '../models/StorageV1TokenRequest.js'; export * from '../models/V1APIGroup.js'; export * from '../models/V1APIGroupList.js'; @@ -28,6 +30,8 @@ export * from '../models/V1APIVersions.js'; export * from '../models/V1AWSElasticBlockStoreVolumeSource.js'; export * from '../models/V1Affinity.js'; export * from '../models/V1AggregationRule.js'; +export * from '../models/V1AllocatedDeviceStatus.js'; +export * from '../models/V1AllocationResult.js'; export * from '../models/V1AppArmorProfile.js'; export * from '../models/V1AttachedVolume.js'; export * from '../models/V1AuditAnnotation.js'; @@ -36,6 +40,7 @@ export * from '../models/V1AzureFilePersistentVolumeSource.js'; export * from '../models/V1AzureFileVolumeSource.js'; export * from '../models/V1Binding.js'; export * from '../models/V1BoundObjectReference.js'; +export * from '../models/V1CELDeviceSelector.js'; export * from '../models/V1CSIDriver.js'; export * from '../models/V1CSIDriverList.js'; export * from '../models/V1CSIDriverSpec.js'; @@ -48,6 +53,9 @@ export * from '../models/V1CSIStorageCapacity.js'; export * from '../models/V1CSIStorageCapacityList.js'; export * from '../models/V1CSIVolumeSource.js'; export * from '../models/V1Capabilities.js'; +export * from '../models/V1CapacityRequestPolicy.js'; +export * from '../models/V1CapacityRequestPolicyRange.js'; +export * from '../models/V1CapacityRequirements.js'; export * from '../models/V1CephFSPersistentVolumeSource.js'; export * from '../models/V1CephFSVolumeSource.js'; export * from '../models/V1CertificateSigningRequest.js'; @@ -75,9 +83,12 @@ export * from '../models/V1ConfigMapNodeConfigSource.js'; export * from '../models/V1ConfigMapProjection.js'; export * from '../models/V1ConfigMapVolumeSource.js'; export * from '../models/V1Container.js'; +export * from '../models/V1ContainerExtendedResourceRequest.js'; export * from '../models/V1ContainerImage.js'; export * from '../models/V1ContainerPort.js'; export * from '../models/V1ContainerResizePolicy.js'; +export * from '../models/V1ContainerRestartRule.js'; +export * from '../models/V1ContainerRestartRuleOnExitCodes.js'; export * from '../models/V1ContainerState.js'; export * from '../models/V1ContainerStateRunning.js'; export * from '../models/V1ContainerStateTerminated.js'; @@ -86,6 +97,8 @@ export * from '../models/V1ContainerStatus.js'; export * from '../models/V1ContainerUser.js'; export * from '../models/V1ControllerRevision.js'; export * from '../models/V1ControllerRevisionList.js'; +export * from '../models/V1Counter.js'; +export * from '../models/V1CounterSet.js'; export * from '../models/V1CronJob.js'; export * from '../models/V1CronJobList.js'; export * from '../models/V1CronJobSpec.js'; @@ -117,6 +130,25 @@ export * from '../models/V1DeploymentList.js'; export * from '../models/V1DeploymentSpec.js'; export * from '../models/V1DeploymentStatus.js'; export * from '../models/V1DeploymentStrategy.js'; +export * from '../models/V1Device.js'; +export * from '../models/V1DeviceAllocationConfiguration.js'; +export * from '../models/V1DeviceAllocationResult.js'; +export * from '../models/V1DeviceAttribute.js'; +export * from '../models/V1DeviceCapacity.js'; +export * from '../models/V1DeviceClaim.js'; +export * from '../models/V1DeviceClaimConfiguration.js'; +export * from '../models/V1DeviceClass.js'; +export * from '../models/V1DeviceClassConfiguration.js'; +export * from '../models/V1DeviceClassList.js'; +export * from '../models/V1DeviceClassSpec.js'; +export * from '../models/V1DeviceConstraint.js'; +export * from '../models/V1DeviceCounterConsumption.js'; +export * from '../models/V1DeviceRequest.js'; +export * from '../models/V1DeviceRequestAllocationResult.js'; +export * from '../models/V1DeviceSelector.js'; +export * from '../models/V1DeviceSubRequest.js'; +export * from '../models/V1DeviceTaint.js'; +export * from '../models/V1DeviceToleration.js'; export * from '../models/V1DownwardAPIProjection.js'; export * from '../models/V1DownwardAPIVolumeFile.js'; export * from '../models/V1DownwardAPIVolumeSource.js'; @@ -137,6 +169,7 @@ export * from '../models/V1EphemeralContainer.js'; export * from '../models/V1EphemeralVolumeSource.js'; export * from '../models/V1EventSource.js'; export * from '../models/V1Eviction.js'; +export * from '../models/V1ExactDeviceRequest.js'; export * from '../models/V1ExecAction.js'; export * from '../models/V1ExemptPriorityLevelConfiguration.js'; export * from '../models/V1ExpressionWarning.js'; @@ -144,6 +177,7 @@ export * from '../models/V1ExternalDocumentation.js'; export * from '../models/V1FCVolumeSource.js'; export * from '../models/V1FieldSelectorAttributes.js'; export * from '../models/V1FieldSelectorRequirement.js'; +export * from '../models/V1FileKeySelector.js'; export * from '../models/V1FlexPersistentVolumeSource.js'; export * from '../models/V1FlexVolumeSource.js'; export * from '../models/V1FlockerVolumeSource.js'; @@ -238,6 +272,7 @@ export * from '../models/V1NamespaceCondition.js'; export * from '../models/V1NamespaceList.js'; export * from '../models/V1NamespaceSpec.js'; export * from '../models/V1NamespaceStatus.js'; +export * from '../models/V1NetworkDeviceData.js'; export * from '../models/V1NetworkPolicy.js'; export * from '../models/V1NetworkPolicyEgressRule.js'; export * from '../models/V1NetworkPolicyIngressRule.js'; @@ -269,6 +304,7 @@ export * from '../models/V1NonResourceRule.js'; export * from '../models/V1ObjectFieldSelector.js'; export * from '../models/V1ObjectMeta.js'; export * from '../models/V1ObjectReference.js'; +export * from '../models/V1OpaqueDeviceConfiguration.js'; export * from '../models/V1Overhead.js'; export * from '../models/V1OwnerReference.js'; export * from '../models/V1ParamKind.js'; @@ -290,6 +326,7 @@ export * from '../models/V1Pod.js'; export * from '../models/V1PodAffinity.js'; export * from '../models/V1PodAffinityTerm.js'; export * from '../models/V1PodAntiAffinity.js'; +export * from '../models/V1PodCertificateProjection.js'; export * from '../models/V1PodCondition.js'; export * from '../models/V1PodDNSConfig.js'; export * from '../models/V1PodDNSConfigOption.js'; @@ -297,6 +334,7 @@ export * from '../models/V1PodDisruptionBudget.js'; export * from '../models/V1PodDisruptionBudgetList.js'; export * from '../models/V1PodDisruptionBudgetSpec.js'; export * from '../models/V1PodDisruptionBudgetStatus.js'; +export * from '../models/V1PodExtendedResourceClaimStatus.js'; export * from '../models/V1PodFailurePolicy.js'; export * from '../models/V1PodFailurePolicyOnExitCodesRequirement.js'; export * from '../models/V1PodFailurePolicyOnPodConditionsPattern.js'; @@ -345,16 +383,26 @@ export * from '../models/V1ReplicationControllerList.js'; export * from '../models/V1ReplicationControllerSpec.js'; export * from '../models/V1ReplicationControllerStatus.js'; export * from '../models/V1ResourceAttributes.js'; -export * from '../models/V1ResourceClaim.js'; +export * from '../models/V1ResourceClaimConsumerReference.js'; +export * from '../models/V1ResourceClaimList.js'; +export * from '../models/V1ResourceClaimSpec.js'; +export * from '../models/V1ResourceClaimStatus.js'; +export * from '../models/V1ResourceClaimTemplate.js'; +export * from '../models/V1ResourceClaimTemplateList.js'; +export * from '../models/V1ResourceClaimTemplateSpec.js'; export * from '../models/V1ResourceFieldSelector.js'; export * from '../models/V1ResourceHealth.js'; export * from '../models/V1ResourcePolicyRule.js'; +export * from '../models/V1ResourcePool.js'; export * from '../models/V1ResourceQuota.js'; export * from '../models/V1ResourceQuotaList.js'; export * from '../models/V1ResourceQuotaSpec.js'; export * from '../models/V1ResourceQuotaStatus.js'; export * from '../models/V1ResourceRequirements.js'; export * from '../models/V1ResourceRule.js'; +export * from '../models/V1ResourceSlice.js'; +export * from '../models/V1ResourceSliceList.js'; +export * from '../models/V1ResourceSliceSpec.js'; export * from '../models/V1ResourceStatus.js'; export * from '../models/V1Role.js'; export * from '../models/V1RoleBinding.js'; @@ -467,6 +515,8 @@ export * from '../models/V1VolumeAttachmentList.js'; export * from '../models/V1VolumeAttachmentSource.js'; export * from '../models/V1VolumeAttachmentSpec.js'; export * from '../models/V1VolumeAttachmentStatus.js'; +export * from '../models/V1VolumeAttributesClass.js'; +export * from '../models/V1VolumeAttributesClassList.js'; export * from '../models/V1VolumeDevice.js'; export * from '../models/V1VolumeError.js'; export * from '../models/V1VolumeMount.js'; @@ -499,6 +549,10 @@ export * from '../models/V1alpha1Mutation.js'; export * from '../models/V1alpha1NamedRuleWithOperations.js'; export * from '../models/V1alpha1ParamKind.js'; export * from '../models/V1alpha1ParamRef.js'; +export * from '../models/V1alpha1PodCertificateRequest.js'; +export * from '../models/V1alpha1PodCertificateRequestList.js'; +export * from '../models/V1alpha1PodCertificateRequestSpec.js'; +export * from '../models/V1alpha1PodCertificateRequestStatus.js'; export * from '../models/V1alpha1ServerStorageVersion.js'; export * from '../models/V1alpha1StorageVersion.js'; export * from '../models/V1alpha1StorageVersionCondition.js'; @@ -514,53 +568,21 @@ export * from '../models/V1alpha1VolumeAttributesClassList.js'; export * from '../models/V1alpha2LeaseCandidate.js'; export * from '../models/V1alpha2LeaseCandidateList.js'; export * from '../models/V1alpha2LeaseCandidateSpec.js'; -export * from '../models/V1alpha3AllocatedDeviceStatus.js'; -export * from '../models/V1alpha3AllocationResult.js'; -export * from '../models/V1alpha3BasicDevice.js'; export * from '../models/V1alpha3CELDeviceSelector.js'; -export * from '../models/V1alpha3Counter.js'; -export * from '../models/V1alpha3CounterSet.js'; -export * from '../models/V1alpha3Device.js'; -export * from '../models/V1alpha3DeviceAllocationConfiguration.js'; -export * from '../models/V1alpha3DeviceAllocationResult.js'; -export * from '../models/V1alpha3DeviceAttribute.js'; -export * from '../models/V1alpha3DeviceClaim.js'; -export * from '../models/V1alpha3DeviceClaimConfiguration.js'; -export * from '../models/V1alpha3DeviceClass.js'; -export * from '../models/V1alpha3DeviceClassConfiguration.js'; -export * from '../models/V1alpha3DeviceClassList.js'; -export * from '../models/V1alpha3DeviceClassSpec.js'; -export * from '../models/V1alpha3DeviceConstraint.js'; -export * from '../models/V1alpha3DeviceCounterConsumption.js'; -export * from '../models/V1alpha3DeviceRequest.js'; -export * from '../models/V1alpha3DeviceRequestAllocationResult.js'; export * from '../models/V1alpha3DeviceSelector.js'; -export * from '../models/V1alpha3DeviceSubRequest.js'; export * from '../models/V1alpha3DeviceTaint.js'; export * from '../models/V1alpha3DeviceTaintRule.js'; export * from '../models/V1alpha3DeviceTaintRuleList.js'; export * from '../models/V1alpha3DeviceTaintRuleSpec.js'; export * from '../models/V1alpha3DeviceTaintSelector.js'; -export * from '../models/V1alpha3DeviceToleration.js'; -export * from '../models/V1alpha3NetworkDeviceData.js'; -export * from '../models/V1alpha3OpaqueDeviceConfiguration.js'; -export * from '../models/V1alpha3ResourceClaim.js'; -export * from '../models/V1alpha3ResourceClaimConsumerReference.js'; -export * from '../models/V1alpha3ResourceClaimList.js'; -export * from '../models/V1alpha3ResourceClaimSpec.js'; -export * from '../models/V1alpha3ResourceClaimStatus.js'; -export * from '../models/V1alpha3ResourceClaimTemplate.js'; -export * from '../models/V1alpha3ResourceClaimTemplateList.js'; -export * from '../models/V1alpha3ResourceClaimTemplateSpec.js'; -export * from '../models/V1alpha3ResourcePool.js'; -export * from '../models/V1alpha3ResourceSlice.js'; -export * from '../models/V1alpha3ResourceSliceList.js'; -export * from '../models/V1alpha3ResourceSliceSpec.js'; export * from '../models/V1beta1AllocatedDeviceStatus.js'; export * from '../models/V1beta1AllocationResult.js'; -export * from '../models/V1beta1AuditAnnotation.js'; +export * from '../models/V1beta1ApplyConfiguration.js'; export * from '../models/V1beta1BasicDevice.js'; export * from '../models/V1beta1CELDeviceSelector.js'; +export * from '../models/V1beta1CapacityRequestPolicy.js'; +export * from '../models/V1beta1CapacityRequestPolicyRange.js'; +export * from '../models/V1beta1CapacityRequirements.js'; export * from '../models/V1beta1ClusterTrustBundle.js'; export * from '../models/V1beta1ClusterTrustBundleList.js'; export * from '../models/V1beta1ClusterTrustBundleSpec.js'; @@ -585,15 +607,22 @@ export * from '../models/V1beta1DeviceSelector.js'; export * from '../models/V1beta1DeviceSubRequest.js'; export * from '../models/V1beta1DeviceTaint.js'; export * from '../models/V1beta1DeviceToleration.js'; -export * from '../models/V1beta1ExpressionWarning.js'; export * from '../models/V1beta1IPAddress.js'; export * from '../models/V1beta1IPAddressList.js'; export * from '../models/V1beta1IPAddressSpec.js'; +export * from '../models/V1beta1JSONPatch.js'; export * from '../models/V1beta1LeaseCandidate.js'; export * from '../models/V1beta1LeaseCandidateList.js'; export * from '../models/V1beta1LeaseCandidateSpec.js'; export * from '../models/V1beta1MatchCondition.js'; export * from '../models/V1beta1MatchResources.js'; +export * from '../models/V1beta1MutatingAdmissionPolicy.js'; +export * from '../models/V1beta1MutatingAdmissionPolicyBinding.js'; +export * from '../models/V1beta1MutatingAdmissionPolicyBindingList.js'; +export * from '../models/V1beta1MutatingAdmissionPolicyBindingSpec.js'; +export * from '../models/V1beta1MutatingAdmissionPolicyList.js'; +export * from '../models/V1beta1MutatingAdmissionPolicySpec.js'; +export * from '../models/V1beta1Mutation.js'; export * from '../models/V1beta1NamedRuleWithOperations.js'; export * from '../models/V1beta1NetworkDeviceData.js'; export * from '../models/V1beta1OpaqueDeviceConfiguration.js'; @@ -616,21 +645,15 @@ export * from '../models/V1beta1ServiceCIDR.js'; export * from '../models/V1beta1ServiceCIDRList.js'; export * from '../models/V1beta1ServiceCIDRSpec.js'; export * from '../models/V1beta1ServiceCIDRStatus.js'; -export * from '../models/V1beta1TypeChecking.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicy.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyBinding.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyBindingList.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyBindingSpec.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyList.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicySpec.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyStatus.js'; -export * from '../models/V1beta1Validation.js'; export * from '../models/V1beta1Variable.js'; export * from '../models/V1beta1VolumeAttributesClass.js'; export * from '../models/V1beta1VolumeAttributesClassList.js'; export * from '../models/V1beta2AllocatedDeviceStatus.js'; export * from '../models/V1beta2AllocationResult.js'; export * from '../models/V1beta2CELDeviceSelector.js'; +export * from '../models/V1beta2CapacityRequestPolicy.js'; +export * from '../models/V1beta2CapacityRequestPolicyRange.js'; +export * from '../models/V1beta2CapacityRequirements.js'; export * from '../models/V1beta2Counter.js'; export * from '../models/V1beta2CounterSet.js'; export * from '../models/V1beta2Device.js'; @@ -703,12 +726,14 @@ import { CoreV1EndpointPort } from '../models/CoreV1EndpointPort.js'; import { CoreV1Event } from '../models/CoreV1Event.js'; import { CoreV1EventList } from '../models/CoreV1EventList.js'; import { CoreV1EventSeries } from '../models/CoreV1EventSeries.js'; +import { CoreV1ResourceClaim } from '../models/CoreV1ResourceClaim.js'; import { DiscoveryV1EndpointPort } from '../models/DiscoveryV1EndpointPort.js'; import { EventsV1Event } from '../models/EventsV1Event.js'; import { EventsV1EventList } from '../models/EventsV1EventList.js'; import { EventsV1EventSeries } from '../models/EventsV1EventSeries.js'; import { FlowcontrolV1Subject } from '../models/FlowcontrolV1Subject.js'; import { RbacV1Subject } from '../models/RbacV1Subject.js'; +import { ResourceV1ResourceClaim } from '../models/ResourceV1ResourceClaim.js'; import { StorageV1TokenRequest } from '../models/StorageV1TokenRequest.js'; import { V1APIGroup } from '../models/V1APIGroup.js'; import { V1APIGroupList } from '../models/V1APIGroupList.js'; @@ -723,6 +748,8 @@ import { V1APIVersions } from '../models/V1APIVersions.js'; import { V1AWSElasticBlockStoreVolumeSource } from '../models/V1AWSElasticBlockStoreVolumeSource.js'; import { V1Affinity } from '../models/V1Affinity.js'; import { V1AggregationRule } from '../models/V1AggregationRule.js'; +import { V1AllocatedDeviceStatus } from '../models/V1AllocatedDeviceStatus.js'; +import { V1AllocationResult } from '../models/V1AllocationResult.js'; import { V1AppArmorProfile } from '../models/V1AppArmorProfile.js'; import { V1AttachedVolume } from '../models/V1AttachedVolume.js'; import { V1AuditAnnotation } from '../models/V1AuditAnnotation.js'; @@ -731,6 +758,7 @@ import { V1AzureFilePersistentVolumeSource } from '../models/V1AzureFilePersiste import { V1AzureFileVolumeSource } from '../models/V1AzureFileVolumeSource.js'; import { V1Binding } from '../models/V1Binding.js'; import { V1BoundObjectReference } from '../models/V1BoundObjectReference.js'; +import { V1CELDeviceSelector } from '../models/V1CELDeviceSelector.js'; import { V1CSIDriver } from '../models/V1CSIDriver.js'; import { V1CSIDriverList } from '../models/V1CSIDriverList.js'; import { V1CSIDriverSpec } from '../models/V1CSIDriverSpec.js'; @@ -743,6 +771,9 @@ import { V1CSIStorageCapacity } from '../models/V1CSIStorageCapacity.js'; import { V1CSIStorageCapacityList } from '../models/V1CSIStorageCapacityList.js'; import { V1CSIVolumeSource } from '../models/V1CSIVolumeSource.js'; import { V1Capabilities } from '../models/V1Capabilities.js'; +import { V1CapacityRequestPolicy } from '../models/V1CapacityRequestPolicy.js'; +import { V1CapacityRequestPolicyRange } from '../models/V1CapacityRequestPolicyRange.js'; +import { V1CapacityRequirements } from '../models/V1CapacityRequirements.js'; import { V1CephFSPersistentVolumeSource } from '../models/V1CephFSPersistentVolumeSource.js'; import { V1CephFSVolumeSource } from '../models/V1CephFSVolumeSource.js'; import { V1CertificateSigningRequest } from '../models/V1CertificateSigningRequest.js'; @@ -770,9 +801,12 @@ import { V1ConfigMapNodeConfigSource } from '../models/V1ConfigMapNodeConfigSour import { V1ConfigMapProjection } from '../models/V1ConfigMapProjection.js'; import { V1ConfigMapVolumeSource } from '../models/V1ConfigMapVolumeSource.js'; import { V1Container } from '../models/V1Container.js'; +import { V1ContainerExtendedResourceRequest } from '../models/V1ContainerExtendedResourceRequest.js'; import { V1ContainerImage } from '../models/V1ContainerImage.js'; import { V1ContainerPort } from '../models/V1ContainerPort.js'; import { V1ContainerResizePolicy } from '../models/V1ContainerResizePolicy.js'; +import { V1ContainerRestartRule } from '../models/V1ContainerRestartRule.js'; +import { V1ContainerRestartRuleOnExitCodes } from '../models/V1ContainerRestartRuleOnExitCodes.js'; import { V1ContainerState } from '../models/V1ContainerState.js'; import { V1ContainerStateRunning } from '../models/V1ContainerStateRunning.js'; import { V1ContainerStateTerminated } from '../models/V1ContainerStateTerminated.js'; @@ -781,6 +815,8 @@ import { V1ContainerStatus } from '../models/V1ContainerStatus.js'; import { V1ContainerUser } from '../models/V1ContainerUser.js'; import { V1ControllerRevision } from '../models/V1ControllerRevision.js'; import { V1ControllerRevisionList } from '../models/V1ControllerRevisionList.js'; +import { V1Counter } from '../models/V1Counter.js'; +import { V1CounterSet } from '../models/V1CounterSet.js'; import { V1CronJob } from '../models/V1CronJob.js'; import { V1CronJobList } from '../models/V1CronJobList.js'; import { V1CronJobSpec } from '../models/V1CronJobSpec.js'; @@ -812,6 +848,25 @@ import { V1DeploymentList } from '../models/V1DeploymentList.js'; import { V1DeploymentSpec } from '../models/V1DeploymentSpec.js'; import { V1DeploymentStatus } from '../models/V1DeploymentStatus.js'; import { V1DeploymentStrategy } from '../models/V1DeploymentStrategy.js'; +import { V1Device } from '../models/V1Device.js'; +import { V1DeviceAllocationConfiguration } from '../models/V1DeviceAllocationConfiguration.js'; +import { V1DeviceAllocationResult } from '../models/V1DeviceAllocationResult.js'; +import { V1DeviceAttribute } from '../models/V1DeviceAttribute.js'; +import { V1DeviceCapacity } from '../models/V1DeviceCapacity.js'; +import { V1DeviceClaim } from '../models/V1DeviceClaim.js'; +import { V1DeviceClaimConfiguration } from '../models/V1DeviceClaimConfiguration.js'; +import { V1DeviceClass } from '../models/V1DeviceClass.js'; +import { V1DeviceClassConfiguration } from '../models/V1DeviceClassConfiguration.js'; +import { V1DeviceClassList } from '../models/V1DeviceClassList.js'; +import { V1DeviceClassSpec } from '../models/V1DeviceClassSpec.js'; +import { V1DeviceConstraint } from '../models/V1DeviceConstraint.js'; +import { V1DeviceCounterConsumption } from '../models/V1DeviceCounterConsumption.js'; +import { V1DeviceRequest } from '../models/V1DeviceRequest.js'; +import { V1DeviceRequestAllocationResult } from '../models/V1DeviceRequestAllocationResult.js'; +import { V1DeviceSelector } from '../models/V1DeviceSelector.js'; +import { V1DeviceSubRequest } from '../models/V1DeviceSubRequest.js'; +import { V1DeviceTaint } from '../models/V1DeviceTaint.js'; +import { V1DeviceToleration } from '../models/V1DeviceToleration.js'; import { V1DownwardAPIProjection } from '../models/V1DownwardAPIProjection.js'; import { V1DownwardAPIVolumeFile } from '../models/V1DownwardAPIVolumeFile.js'; import { V1DownwardAPIVolumeSource } from '../models/V1DownwardAPIVolumeSource.js'; @@ -832,6 +887,7 @@ import { V1EphemeralContainer } from '../models/V1EphemeralContainer.js'; import { V1EphemeralVolumeSource } from '../models/V1EphemeralVolumeSource.js'; import { V1EventSource } from '../models/V1EventSource.js'; import { V1Eviction } from '../models/V1Eviction.js'; +import { V1ExactDeviceRequest } from '../models/V1ExactDeviceRequest.js'; import { V1ExecAction } from '../models/V1ExecAction.js'; import { V1ExemptPriorityLevelConfiguration } from '../models/V1ExemptPriorityLevelConfiguration.js'; import { V1ExpressionWarning } from '../models/V1ExpressionWarning.js'; @@ -839,6 +895,7 @@ import { V1ExternalDocumentation } from '../models/V1ExternalDocumentation.js'; import { V1FCVolumeSource } from '../models/V1FCVolumeSource.js'; import { V1FieldSelectorAttributes } from '../models/V1FieldSelectorAttributes.js'; import { V1FieldSelectorRequirement } from '../models/V1FieldSelectorRequirement.js'; +import { V1FileKeySelector } from '../models/V1FileKeySelector.js'; import { V1FlexPersistentVolumeSource } from '../models/V1FlexPersistentVolumeSource.js'; import { V1FlexVolumeSource } from '../models/V1FlexVolumeSource.js'; import { V1FlockerVolumeSource } from '../models/V1FlockerVolumeSource.js'; @@ -933,6 +990,7 @@ import { V1NamespaceCondition } from '../models/V1NamespaceCondition.js'; import { V1NamespaceList } from '../models/V1NamespaceList.js'; import { V1NamespaceSpec } from '../models/V1NamespaceSpec.js'; import { V1NamespaceStatus } from '../models/V1NamespaceStatus.js'; +import { V1NetworkDeviceData } from '../models/V1NetworkDeviceData.js'; import { V1NetworkPolicy } from '../models/V1NetworkPolicy.js'; import { V1NetworkPolicyEgressRule } from '../models/V1NetworkPolicyEgressRule.js'; import { V1NetworkPolicyIngressRule } from '../models/V1NetworkPolicyIngressRule.js'; @@ -964,6 +1022,7 @@ import { V1NonResourceRule } from '../models/V1NonResourceRule.js'; import { V1ObjectFieldSelector } from '../models/V1ObjectFieldSelector.js'; import { V1ObjectMeta } from '../models/V1ObjectMeta.js'; import { V1ObjectReference } from '../models/V1ObjectReference.js'; +import { V1OpaqueDeviceConfiguration } from '../models/V1OpaqueDeviceConfiguration.js'; import { V1Overhead } from '../models/V1Overhead.js'; import { V1OwnerReference } from '../models/V1OwnerReference.js'; import { V1ParamKind } from '../models/V1ParamKind.js'; @@ -985,6 +1044,7 @@ import { V1Pod } from '../models/V1Pod.js'; import { V1PodAffinity } from '../models/V1PodAffinity.js'; import { V1PodAffinityTerm } from '../models/V1PodAffinityTerm.js'; import { V1PodAntiAffinity } from '../models/V1PodAntiAffinity.js'; +import { V1PodCertificateProjection } from '../models/V1PodCertificateProjection.js'; import { V1PodCondition } from '../models/V1PodCondition.js'; import { V1PodDNSConfig } from '../models/V1PodDNSConfig.js'; import { V1PodDNSConfigOption } from '../models/V1PodDNSConfigOption.js'; @@ -992,6 +1052,7 @@ import { V1PodDisruptionBudget } from '../models/V1PodDisruptionBudget.js'; import { V1PodDisruptionBudgetList } from '../models/V1PodDisruptionBudgetList.js'; import { V1PodDisruptionBudgetSpec } from '../models/V1PodDisruptionBudgetSpec.js'; import { V1PodDisruptionBudgetStatus } from '../models/V1PodDisruptionBudgetStatus.js'; +import { V1PodExtendedResourceClaimStatus } from '../models/V1PodExtendedResourceClaimStatus.js'; import { V1PodFailurePolicy } from '../models/V1PodFailurePolicy.js'; import { V1PodFailurePolicyOnExitCodesRequirement } from '../models/V1PodFailurePolicyOnExitCodesRequirement.js'; import { V1PodFailurePolicyOnPodConditionsPattern } from '../models/V1PodFailurePolicyOnPodConditionsPattern.js'; @@ -1040,16 +1101,26 @@ import { V1ReplicationControllerList } from '../models/V1ReplicationControllerLi import { V1ReplicationControllerSpec } from '../models/V1ReplicationControllerSpec.js'; import { V1ReplicationControllerStatus } from '../models/V1ReplicationControllerStatus.js'; import { V1ResourceAttributes } from '../models/V1ResourceAttributes.js'; -import { V1ResourceClaim } from '../models/V1ResourceClaim.js'; +import { V1ResourceClaimConsumerReference } from '../models/V1ResourceClaimConsumerReference.js'; +import { V1ResourceClaimList } from '../models/V1ResourceClaimList.js'; +import { V1ResourceClaimSpec } from '../models/V1ResourceClaimSpec.js'; +import { V1ResourceClaimStatus } from '../models/V1ResourceClaimStatus.js'; +import { V1ResourceClaimTemplate } from '../models/V1ResourceClaimTemplate.js'; +import { V1ResourceClaimTemplateList } from '../models/V1ResourceClaimTemplateList.js'; +import { V1ResourceClaimTemplateSpec } from '../models/V1ResourceClaimTemplateSpec.js'; import { V1ResourceFieldSelector } from '../models/V1ResourceFieldSelector.js'; import { V1ResourceHealth } from '../models/V1ResourceHealth.js'; import { V1ResourcePolicyRule } from '../models/V1ResourcePolicyRule.js'; +import { V1ResourcePool } from '../models/V1ResourcePool.js'; import { V1ResourceQuota } from '../models/V1ResourceQuota.js'; import { V1ResourceQuotaList } from '../models/V1ResourceQuotaList.js'; import { V1ResourceQuotaSpec } from '../models/V1ResourceQuotaSpec.js'; import { V1ResourceQuotaStatus } from '../models/V1ResourceQuotaStatus.js'; import { V1ResourceRequirements } from '../models/V1ResourceRequirements.js'; import { V1ResourceRule } from '../models/V1ResourceRule.js'; +import { V1ResourceSlice } from '../models/V1ResourceSlice.js'; +import { V1ResourceSliceList } from '../models/V1ResourceSliceList.js'; +import { V1ResourceSliceSpec } from '../models/V1ResourceSliceSpec.js'; import { V1ResourceStatus } from '../models/V1ResourceStatus.js'; import { V1Role } from '../models/V1Role.js'; import { V1RoleBinding } from '../models/V1RoleBinding.js'; @@ -1162,6 +1233,8 @@ import { V1VolumeAttachmentList } from '../models/V1VolumeAttachmentList.js'; import { V1VolumeAttachmentSource } from '../models/V1VolumeAttachmentSource.js'; import { V1VolumeAttachmentSpec } from '../models/V1VolumeAttachmentSpec.js'; import { V1VolumeAttachmentStatus } from '../models/V1VolumeAttachmentStatus.js'; +import { V1VolumeAttributesClass } from '../models/V1VolumeAttributesClass.js'; +import { V1VolumeAttributesClassList } from '../models/V1VolumeAttributesClassList.js'; import { V1VolumeDevice } from '../models/V1VolumeDevice.js'; import { V1VolumeError } from '../models/V1VolumeError.js'; import { V1VolumeMount } from '../models/V1VolumeMount.js'; @@ -1194,6 +1267,10 @@ import { V1alpha1Mutation } from '../models/V1alpha1Mutation.js'; import { V1alpha1NamedRuleWithOperations } from '../models/V1alpha1NamedRuleWithOperations.js'; import { V1alpha1ParamKind } from '../models/V1alpha1ParamKind.js'; import { V1alpha1ParamRef } from '../models/V1alpha1ParamRef.js'; +import { V1alpha1PodCertificateRequest } from '../models/V1alpha1PodCertificateRequest.js'; +import { V1alpha1PodCertificateRequestList } from '../models/V1alpha1PodCertificateRequestList.js'; +import { V1alpha1PodCertificateRequestSpec } from '../models/V1alpha1PodCertificateRequestSpec.js'; +import { V1alpha1PodCertificateRequestStatus } from '../models/V1alpha1PodCertificateRequestStatus.js'; import { V1alpha1ServerStorageVersion } from '../models/V1alpha1ServerStorageVersion.js'; import { V1alpha1StorageVersion } from '../models/V1alpha1StorageVersion.js'; import { V1alpha1StorageVersionCondition } from '../models/V1alpha1StorageVersionCondition.js'; @@ -1209,53 +1286,21 @@ import { V1alpha1VolumeAttributesClassList } from '../models/V1alpha1VolumeAttri import { V1alpha2LeaseCandidate } from '../models/V1alpha2LeaseCandidate.js'; import { V1alpha2LeaseCandidateList } from '../models/V1alpha2LeaseCandidateList.js'; import { V1alpha2LeaseCandidateSpec } from '../models/V1alpha2LeaseCandidateSpec.js'; -import { V1alpha3AllocatedDeviceStatus } from '../models/V1alpha3AllocatedDeviceStatus.js'; -import { V1alpha3AllocationResult } from '../models/V1alpha3AllocationResult.js'; -import { V1alpha3BasicDevice } from '../models/V1alpha3BasicDevice.js'; import { V1alpha3CELDeviceSelector } from '../models/V1alpha3CELDeviceSelector.js'; -import { V1alpha3Counter } from '../models/V1alpha3Counter.js'; -import { V1alpha3CounterSet } from '../models/V1alpha3CounterSet.js'; -import { V1alpha3Device } from '../models/V1alpha3Device.js'; -import { V1alpha3DeviceAllocationConfiguration } from '../models/V1alpha3DeviceAllocationConfiguration.js'; -import { V1alpha3DeviceAllocationResult } from '../models/V1alpha3DeviceAllocationResult.js'; -import { V1alpha3DeviceAttribute } from '../models/V1alpha3DeviceAttribute.js'; -import { V1alpha3DeviceClaim } from '../models/V1alpha3DeviceClaim.js'; -import { V1alpha3DeviceClaimConfiguration } from '../models/V1alpha3DeviceClaimConfiguration.js'; -import { V1alpha3DeviceClass } from '../models/V1alpha3DeviceClass.js'; -import { V1alpha3DeviceClassConfiguration } from '../models/V1alpha3DeviceClassConfiguration.js'; -import { V1alpha3DeviceClassList } from '../models/V1alpha3DeviceClassList.js'; -import { V1alpha3DeviceClassSpec } from '../models/V1alpha3DeviceClassSpec.js'; -import { V1alpha3DeviceConstraint } from '../models/V1alpha3DeviceConstraint.js'; -import { V1alpha3DeviceCounterConsumption } from '../models/V1alpha3DeviceCounterConsumption.js'; -import { V1alpha3DeviceRequest } from '../models/V1alpha3DeviceRequest.js'; -import { V1alpha3DeviceRequestAllocationResult } from '../models/V1alpha3DeviceRequestAllocationResult.js'; import { V1alpha3DeviceSelector } from '../models/V1alpha3DeviceSelector.js'; -import { V1alpha3DeviceSubRequest } from '../models/V1alpha3DeviceSubRequest.js'; import { V1alpha3DeviceTaint } from '../models/V1alpha3DeviceTaint.js'; import { V1alpha3DeviceTaintRule } from '../models/V1alpha3DeviceTaintRule.js'; import { V1alpha3DeviceTaintRuleList } from '../models/V1alpha3DeviceTaintRuleList.js'; import { V1alpha3DeviceTaintRuleSpec } from '../models/V1alpha3DeviceTaintRuleSpec.js'; import { V1alpha3DeviceTaintSelector } from '../models/V1alpha3DeviceTaintSelector.js'; -import { V1alpha3DeviceToleration } from '../models/V1alpha3DeviceToleration.js'; -import { V1alpha3NetworkDeviceData } from '../models/V1alpha3NetworkDeviceData.js'; -import { V1alpha3OpaqueDeviceConfiguration } from '../models/V1alpha3OpaqueDeviceConfiguration.js'; -import { V1alpha3ResourceClaim } from '../models/V1alpha3ResourceClaim.js'; -import { V1alpha3ResourceClaimConsumerReference } from '../models/V1alpha3ResourceClaimConsumerReference.js'; -import { V1alpha3ResourceClaimList } from '../models/V1alpha3ResourceClaimList.js'; -import { V1alpha3ResourceClaimSpec } from '../models/V1alpha3ResourceClaimSpec.js'; -import { V1alpha3ResourceClaimStatus } from '../models/V1alpha3ResourceClaimStatus.js'; -import { V1alpha3ResourceClaimTemplate } from '../models/V1alpha3ResourceClaimTemplate.js'; -import { V1alpha3ResourceClaimTemplateList } from '../models/V1alpha3ResourceClaimTemplateList.js'; -import { V1alpha3ResourceClaimTemplateSpec } from '../models/V1alpha3ResourceClaimTemplateSpec.js'; -import { V1alpha3ResourcePool } from '../models/V1alpha3ResourcePool.js'; -import { V1alpha3ResourceSlice } from '../models/V1alpha3ResourceSlice.js'; -import { V1alpha3ResourceSliceList } from '../models/V1alpha3ResourceSliceList.js'; -import { V1alpha3ResourceSliceSpec } from '../models/V1alpha3ResourceSliceSpec.js'; import { V1beta1AllocatedDeviceStatus } from '../models/V1beta1AllocatedDeviceStatus.js'; import { V1beta1AllocationResult } from '../models/V1beta1AllocationResult.js'; -import { V1beta1AuditAnnotation } from '../models/V1beta1AuditAnnotation.js'; +import { V1beta1ApplyConfiguration } from '../models/V1beta1ApplyConfiguration.js'; import { V1beta1BasicDevice } from '../models/V1beta1BasicDevice.js'; import { V1beta1CELDeviceSelector } from '../models/V1beta1CELDeviceSelector.js'; +import { V1beta1CapacityRequestPolicy } from '../models/V1beta1CapacityRequestPolicy.js'; +import { V1beta1CapacityRequestPolicyRange } from '../models/V1beta1CapacityRequestPolicyRange.js'; +import { V1beta1CapacityRequirements } from '../models/V1beta1CapacityRequirements.js'; import { V1beta1ClusterTrustBundle } from '../models/V1beta1ClusterTrustBundle.js'; import { V1beta1ClusterTrustBundleList } from '../models/V1beta1ClusterTrustBundleList.js'; import { V1beta1ClusterTrustBundleSpec } from '../models/V1beta1ClusterTrustBundleSpec.js'; @@ -1280,15 +1325,22 @@ import { V1beta1DeviceSelector } from '../models/V1beta1DeviceSelector.js'; import { V1beta1DeviceSubRequest } from '../models/V1beta1DeviceSubRequest.js'; import { V1beta1DeviceTaint } from '../models/V1beta1DeviceTaint.js'; import { V1beta1DeviceToleration } from '../models/V1beta1DeviceToleration.js'; -import { V1beta1ExpressionWarning } from '../models/V1beta1ExpressionWarning.js'; import { V1beta1IPAddress } from '../models/V1beta1IPAddress.js'; import { V1beta1IPAddressList } from '../models/V1beta1IPAddressList.js'; import { V1beta1IPAddressSpec } from '../models/V1beta1IPAddressSpec.js'; +import { V1beta1JSONPatch } from '../models/V1beta1JSONPatch.js'; import { V1beta1LeaseCandidate } from '../models/V1beta1LeaseCandidate.js'; import { V1beta1LeaseCandidateList } from '../models/V1beta1LeaseCandidateList.js'; import { V1beta1LeaseCandidateSpec } from '../models/V1beta1LeaseCandidateSpec.js'; import { V1beta1MatchCondition } from '../models/V1beta1MatchCondition.js'; import { V1beta1MatchResources } from '../models/V1beta1MatchResources.js'; +import { V1beta1MutatingAdmissionPolicy } from '../models/V1beta1MutatingAdmissionPolicy.js'; +import { V1beta1MutatingAdmissionPolicyBinding } from '../models/V1beta1MutatingAdmissionPolicyBinding.js'; +import { V1beta1MutatingAdmissionPolicyBindingList } from '../models/V1beta1MutatingAdmissionPolicyBindingList.js'; +import { V1beta1MutatingAdmissionPolicyBindingSpec } from '../models/V1beta1MutatingAdmissionPolicyBindingSpec.js'; +import { V1beta1MutatingAdmissionPolicyList } from '../models/V1beta1MutatingAdmissionPolicyList.js'; +import { V1beta1MutatingAdmissionPolicySpec } from '../models/V1beta1MutatingAdmissionPolicySpec.js'; +import { V1beta1Mutation } from '../models/V1beta1Mutation.js'; import { V1beta1NamedRuleWithOperations } from '../models/V1beta1NamedRuleWithOperations.js'; import { V1beta1NetworkDeviceData } from '../models/V1beta1NetworkDeviceData.js'; import { V1beta1OpaqueDeviceConfiguration } from '../models/V1beta1OpaqueDeviceConfiguration.js'; @@ -1311,21 +1363,15 @@ import { V1beta1ServiceCIDR } from '../models/V1beta1ServiceCIDR.js'; import { V1beta1ServiceCIDRList } from '../models/V1beta1ServiceCIDRList.js'; import { V1beta1ServiceCIDRSpec } from '../models/V1beta1ServiceCIDRSpec.js'; import { V1beta1ServiceCIDRStatus } from '../models/V1beta1ServiceCIDRStatus.js'; -import { V1beta1TypeChecking } from '../models/V1beta1TypeChecking.js'; -import { V1beta1ValidatingAdmissionPolicy } from '../models/V1beta1ValidatingAdmissionPolicy.js'; -import { V1beta1ValidatingAdmissionPolicyBinding } from '../models/V1beta1ValidatingAdmissionPolicyBinding.js'; -import { V1beta1ValidatingAdmissionPolicyBindingList } from '../models/V1beta1ValidatingAdmissionPolicyBindingList.js'; -import { V1beta1ValidatingAdmissionPolicyBindingSpec } from '../models/V1beta1ValidatingAdmissionPolicyBindingSpec.js'; -import { V1beta1ValidatingAdmissionPolicyList } from '../models/V1beta1ValidatingAdmissionPolicyList.js'; -import { V1beta1ValidatingAdmissionPolicySpec } from '../models/V1beta1ValidatingAdmissionPolicySpec.js'; -import { V1beta1ValidatingAdmissionPolicyStatus } from '../models/V1beta1ValidatingAdmissionPolicyStatus.js'; -import { V1beta1Validation } from '../models/V1beta1Validation.js'; import { V1beta1Variable } from '../models/V1beta1Variable.js'; import { V1beta1VolumeAttributesClass } from '../models/V1beta1VolumeAttributesClass.js'; import { V1beta1VolumeAttributesClassList } from '../models/V1beta1VolumeAttributesClassList.js'; import { V1beta2AllocatedDeviceStatus } from '../models/V1beta2AllocatedDeviceStatus.js'; import { V1beta2AllocationResult } from '../models/V1beta2AllocationResult.js'; import { V1beta2CELDeviceSelector } from '../models/V1beta2CELDeviceSelector.js'; +import { V1beta2CapacityRequestPolicy } from '../models/V1beta2CapacityRequestPolicy.js'; +import { V1beta2CapacityRequestPolicyRange } from '../models/V1beta2CapacityRequestPolicyRange.js'; +import { V1beta2CapacityRequirements } from '../models/V1beta2CapacityRequirements.js'; import { V1beta2Counter } from '../models/V1beta2Counter.js'; import { V1beta2CounterSet } from '../models/V1beta2CounterSet.js'; import { V1beta2Device } from '../models/V1beta2Device.js'; @@ -1414,12 +1460,14 @@ let typeMap: {[index: string]: any} = { "CoreV1Event": CoreV1Event, "CoreV1EventList": CoreV1EventList, "CoreV1EventSeries": CoreV1EventSeries, + "CoreV1ResourceClaim": CoreV1ResourceClaim, "DiscoveryV1EndpointPort": DiscoveryV1EndpointPort, "EventsV1Event": EventsV1Event, "EventsV1EventList": EventsV1EventList, "EventsV1EventSeries": EventsV1EventSeries, "FlowcontrolV1Subject": FlowcontrolV1Subject, "RbacV1Subject": RbacV1Subject, + "ResourceV1ResourceClaim": ResourceV1ResourceClaim, "StorageV1TokenRequest": StorageV1TokenRequest, "V1APIGroup": V1APIGroup, "V1APIGroupList": V1APIGroupList, @@ -1434,6 +1482,8 @@ let typeMap: {[index: string]: any} = { "V1AWSElasticBlockStoreVolumeSource": V1AWSElasticBlockStoreVolumeSource, "V1Affinity": V1Affinity, "V1AggregationRule": V1AggregationRule, + "V1AllocatedDeviceStatus": V1AllocatedDeviceStatus, + "V1AllocationResult": V1AllocationResult, "V1AppArmorProfile": V1AppArmorProfile, "V1AttachedVolume": V1AttachedVolume, "V1AuditAnnotation": V1AuditAnnotation, @@ -1442,6 +1492,7 @@ let typeMap: {[index: string]: any} = { "V1AzureFileVolumeSource": V1AzureFileVolumeSource, "V1Binding": V1Binding, "V1BoundObjectReference": V1BoundObjectReference, + "V1CELDeviceSelector": V1CELDeviceSelector, "V1CSIDriver": V1CSIDriver, "V1CSIDriverList": V1CSIDriverList, "V1CSIDriverSpec": V1CSIDriverSpec, @@ -1454,6 +1505,9 @@ let typeMap: {[index: string]: any} = { "V1CSIStorageCapacityList": V1CSIStorageCapacityList, "V1CSIVolumeSource": V1CSIVolumeSource, "V1Capabilities": V1Capabilities, + "V1CapacityRequestPolicy": V1CapacityRequestPolicy, + "V1CapacityRequestPolicyRange": V1CapacityRequestPolicyRange, + "V1CapacityRequirements": V1CapacityRequirements, "V1CephFSPersistentVolumeSource": V1CephFSPersistentVolumeSource, "V1CephFSVolumeSource": V1CephFSVolumeSource, "V1CertificateSigningRequest": V1CertificateSigningRequest, @@ -1481,9 +1535,12 @@ let typeMap: {[index: string]: any} = { "V1ConfigMapProjection": V1ConfigMapProjection, "V1ConfigMapVolumeSource": V1ConfigMapVolumeSource, "V1Container": V1Container, + "V1ContainerExtendedResourceRequest": V1ContainerExtendedResourceRequest, "V1ContainerImage": V1ContainerImage, "V1ContainerPort": V1ContainerPort, "V1ContainerResizePolicy": V1ContainerResizePolicy, + "V1ContainerRestartRule": V1ContainerRestartRule, + "V1ContainerRestartRuleOnExitCodes": V1ContainerRestartRuleOnExitCodes, "V1ContainerState": V1ContainerState, "V1ContainerStateRunning": V1ContainerStateRunning, "V1ContainerStateTerminated": V1ContainerStateTerminated, @@ -1492,6 +1549,8 @@ let typeMap: {[index: string]: any} = { "V1ContainerUser": V1ContainerUser, "V1ControllerRevision": V1ControllerRevision, "V1ControllerRevisionList": V1ControllerRevisionList, + "V1Counter": V1Counter, + "V1CounterSet": V1CounterSet, "V1CronJob": V1CronJob, "V1CronJobList": V1CronJobList, "V1CronJobSpec": V1CronJobSpec, @@ -1523,6 +1582,25 @@ let typeMap: {[index: string]: any} = { "V1DeploymentSpec": V1DeploymentSpec, "V1DeploymentStatus": V1DeploymentStatus, "V1DeploymentStrategy": V1DeploymentStrategy, + "V1Device": V1Device, + "V1DeviceAllocationConfiguration": V1DeviceAllocationConfiguration, + "V1DeviceAllocationResult": V1DeviceAllocationResult, + "V1DeviceAttribute": V1DeviceAttribute, + "V1DeviceCapacity": V1DeviceCapacity, + "V1DeviceClaim": V1DeviceClaim, + "V1DeviceClaimConfiguration": V1DeviceClaimConfiguration, + "V1DeviceClass": V1DeviceClass, + "V1DeviceClassConfiguration": V1DeviceClassConfiguration, + "V1DeviceClassList": V1DeviceClassList, + "V1DeviceClassSpec": V1DeviceClassSpec, + "V1DeviceConstraint": V1DeviceConstraint, + "V1DeviceCounterConsumption": V1DeviceCounterConsumption, + "V1DeviceRequest": V1DeviceRequest, + "V1DeviceRequestAllocationResult": V1DeviceRequestAllocationResult, + "V1DeviceSelector": V1DeviceSelector, + "V1DeviceSubRequest": V1DeviceSubRequest, + "V1DeviceTaint": V1DeviceTaint, + "V1DeviceToleration": V1DeviceToleration, "V1DownwardAPIProjection": V1DownwardAPIProjection, "V1DownwardAPIVolumeFile": V1DownwardAPIVolumeFile, "V1DownwardAPIVolumeSource": V1DownwardAPIVolumeSource, @@ -1543,6 +1621,7 @@ let typeMap: {[index: string]: any} = { "V1EphemeralVolumeSource": V1EphemeralVolumeSource, "V1EventSource": V1EventSource, "V1Eviction": V1Eviction, + "V1ExactDeviceRequest": V1ExactDeviceRequest, "V1ExecAction": V1ExecAction, "V1ExemptPriorityLevelConfiguration": V1ExemptPriorityLevelConfiguration, "V1ExpressionWarning": V1ExpressionWarning, @@ -1550,6 +1629,7 @@ let typeMap: {[index: string]: any} = { "V1FCVolumeSource": V1FCVolumeSource, "V1FieldSelectorAttributes": V1FieldSelectorAttributes, "V1FieldSelectorRequirement": V1FieldSelectorRequirement, + "V1FileKeySelector": V1FileKeySelector, "V1FlexPersistentVolumeSource": V1FlexPersistentVolumeSource, "V1FlexVolumeSource": V1FlexVolumeSource, "V1FlockerVolumeSource": V1FlockerVolumeSource, @@ -1644,6 +1724,7 @@ let typeMap: {[index: string]: any} = { "V1NamespaceList": V1NamespaceList, "V1NamespaceSpec": V1NamespaceSpec, "V1NamespaceStatus": V1NamespaceStatus, + "V1NetworkDeviceData": V1NetworkDeviceData, "V1NetworkPolicy": V1NetworkPolicy, "V1NetworkPolicyEgressRule": V1NetworkPolicyEgressRule, "V1NetworkPolicyIngressRule": V1NetworkPolicyIngressRule, @@ -1675,6 +1756,7 @@ let typeMap: {[index: string]: any} = { "V1ObjectFieldSelector": V1ObjectFieldSelector, "V1ObjectMeta": V1ObjectMeta, "V1ObjectReference": V1ObjectReference, + "V1OpaqueDeviceConfiguration": V1OpaqueDeviceConfiguration, "V1Overhead": V1Overhead, "V1OwnerReference": V1OwnerReference, "V1ParamKind": V1ParamKind, @@ -1696,6 +1778,7 @@ let typeMap: {[index: string]: any} = { "V1PodAffinity": V1PodAffinity, "V1PodAffinityTerm": V1PodAffinityTerm, "V1PodAntiAffinity": V1PodAntiAffinity, + "V1PodCertificateProjection": V1PodCertificateProjection, "V1PodCondition": V1PodCondition, "V1PodDNSConfig": V1PodDNSConfig, "V1PodDNSConfigOption": V1PodDNSConfigOption, @@ -1703,6 +1786,7 @@ let typeMap: {[index: string]: any} = { "V1PodDisruptionBudgetList": V1PodDisruptionBudgetList, "V1PodDisruptionBudgetSpec": V1PodDisruptionBudgetSpec, "V1PodDisruptionBudgetStatus": V1PodDisruptionBudgetStatus, + "V1PodExtendedResourceClaimStatus": V1PodExtendedResourceClaimStatus, "V1PodFailurePolicy": V1PodFailurePolicy, "V1PodFailurePolicyOnExitCodesRequirement": V1PodFailurePolicyOnExitCodesRequirement, "V1PodFailurePolicyOnPodConditionsPattern": V1PodFailurePolicyOnPodConditionsPattern, @@ -1751,16 +1835,26 @@ let typeMap: {[index: string]: any} = { "V1ReplicationControllerSpec": V1ReplicationControllerSpec, "V1ReplicationControllerStatus": V1ReplicationControllerStatus, "V1ResourceAttributes": V1ResourceAttributes, - "V1ResourceClaim": V1ResourceClaim, + "V1ResourceClaimConsumerReference": V1ResourceClaimConsumerReference, + "V1ResourceClaimList": V1ResourceClaimList, + "V1ResourceClaimSpec": V1ResourceClaimSpec, + "V1ResourceClaimStatus": V1ResourceClaimStatus, + "V1ResourceClaimTemplate": V1ResourceClaimTemplate, + "V1ResourceClaimTemplateList": V1ResourceClaimTemplateList, + "V1ResourceClaimTemplateSpec": V1ResourceClaimTemplateSpec, "V1ResourceFieldSelector": V1ResourceFieldSelector, "V1ResourceHealth": V1ResourceHealth, "V1ResourcePolicyRule": V1ResourcePolicyRule, + "V1ResourcePool": V1ResourcePool, "V1ResourceQuota": V1ResourceQuota, "V1ResourceQuotaList": V1ResourceQuotaList, "V1ResourceQuotaSpec": V1ResourceQuotaSpec, "V1ResourceQuotaStatus": V1ResourceQuotaStatus, "V1ResourceRequirements": V1ResourceRequirements, "V1ResourceRule": V1ResourceRule, + "V1ResourceSlice": V1ResourceSlice, + "V1ResourceSliceList": V1ResourceSliceList, + "V1ResourceSliceSpec": V1ResourceSliceSpec, "V1ResourceStatus": V1ResourceStatus, "V1Role": V1Role, "V1RoleBinding": V1RoleBinding, @@ -1873,6 +1967,8 @@ let typeMap: {[index: string]: any} = { "V1VolumeAttachmentSource": V1VolumeAttachmentSource, "V1VolumeAttachmentSpec": V1VolumeAttachmentSpec, "V1VolumeAttachmentStatus": V1VolumeAttachmentStatus, + "V1VolumeAttributesClass": V1VolumeAttributesClass, + "V1VolumeAttributesClassList": V1VolumeAttributesClassList, "V1VolumeDevice": V1VolumeDevice, "V1VolumeError": V1VolumeError, "V1VolumeMount": V1VolumeMount, @@ -1905,6 +2001,10 @@ let typeMap: {[index: string]: any} = { "V1alpha1NamedRuleWithOperations": V1alpha1NamedRuleWithOperations, "V1alpha1ParamKind": V1alpha1ParamKind, "V1alpha1ParamRef": V1alpha1ParamRef, + "V1alpha1PodCertificateRequest": V1alpha1PodCertificateRequest, + "V1alpha1PodCertificateRequestList": V1alpha1PodCertificateRequestList, + "V1alpha1PodCertificateRequestSpec": V1alpha1PodCertificateRequestSpec, + "V1alpha1PodCertificateRequestStatus": V1alpha1PodCertificateRequestStatus, "V1alpha1ServerStorageVersion": V1alpha1ServerStorageVersion, "V1alpha1StorageVersion": V1alpha1StorageVersion, "V1alpha1StorageVersionCondition": V1alpha1StorageVersionCondition, @@ -1920,53 +2020,21 @@ let typeMap: {[index: string]: any} = { "V1alpha2LeaseCandidate": V1alpha2LeaseCandidate, "V1alpha2LeaseCandidateList": V1alpha2LeaseCandidateList, "V1alpha2LeaseCandidateSpec": V1alpha2LeaseCandidateSpec, - "V1alpha3AllocatedDeviceStatus": V1alpha3AllocatedDeviceStatus, - "V1alpha3AllocationResult": V1alpha3AllocationResult, - "V1alpha3BasicDevice": V1alpha3BasicDevice, "V1alpha3CELDeviceSelector": V1alpha3CELDeviceSelector, - "V1alpha3Counter": V1alpha3Counter, - "V1alpha3CounterSet": V1alpha3CounterSet, - "V1alpha3Device": V1alpha3Device, - "V1alpha3DeviceAllocationConfiguration": V1alpha3DeviceAllocationConfiguration, - "V1alpha3DeviceAllocationResult": V1alpha3DeviceAllocationResult, - "V1alpha3DeviceAttribute": V1alpha3DeviceAttribute, - "V1alpha3DeviceClaim": V1alpha3DeviceClaim, - "V1alpha3DeviceClaimConfiguration": V1alpha3DeviceClaimConfiguration, - "V1alpha3DeviceClass": V1alpha3DeviceClass, - "V1alpha3DeviceClassConfiguration": V1alpha3DeviceClassConfiguration, - "V1alpha3DeviceClassList": V1alpha3DeviceClassList, - "V1alpha3DeviceClassSpec": V1alpha3DeviceClassSpec, - "V1alpha3DeviceConstraint": V1alpha3DeviceConstraint, - "V1alpha3DeviceCounterConsumption": V1alpha3DeviceCounterConsumption, - "V1alpha3DeviceRequest": V1alpha3DeviceRequest, - "V1alpha3DeviceRequestAllocationResult": V1alpha3DeviceRequestAllocationResult, "V1alpha3DeviceSelector": V1alpha3DeviceSelector, - "V1alpha3DeviceSubRequest": V1alpha3DeviceSubRequest, "V1alpha3DeviceTaint": V1alpha3DeviceTaint, "V1alpha3DeviceTaintRule": V1alpha3DeviceTaintRule, "V1alpha3DeviceTaintRuleList": V1alpha3DeviceTaintRuleList, "V1alpha3DeviceTaintRuleSpec": V1alpha3DeviceTaintRuleSpec, "V1alpha3DeviceTaintSelector": V1alpha3DeviceTaintSelector, - "V1alpha3DeviceToleration": V1alpha3DeviceToleration, - "V1alpha3NetworkDeviceData": V1alpha3NetworkDeviceData, - "V1alpha3OpaqueDeviceConfiguration": V1alpha3OpaqueDeviceConfiguration, - "V1alpha3ResourceClaim": V1alpha3ResourceClaim, - "V1alpha3ResourceClaimConsumerReference": V1alpha3ResourceClaimConsumerReference, - "V1alpha3ResourceClaimList": V1alpha3ResourceClaimList, - "V1alpha3ResourceClaimSpec": V1alpha3ResourceClaimSpec, - "V1alpha3ResourceClaimStatus": V1alpha3ResourceClaimStatus, - "V1alpha3ResourceClaimTemplate": V1alpha3ResourceClaimTemplate, - "V1alpha3ResourceClaimTemplateList": V1alpha3ResourceClaimTemplateList, - "V1alpha3ResourceClaimTemplateSpec": V1alpha3ResourceClaimTemplateSpec, - "V1alpha3ResourcePool": V1alpha3ResourcePool, - "V1alpha3ResourceSlice": V1alpha3ResourceSlice, - "V1alpha3ResourceSliceList": V1alpha3ResourceSliceList, - "V1alpha3ResourceSliceSpec": V1alpha3ResourceSliceSpec, "V1beta1AllocatedDeviceStatus": V1beta1AllocatedDeviceStatus, "V1beta1AllocationResult": V1beta1AllocationResult, - "V1beta1AuditAnnotation": V1beta1AuditAnnotation, + "V1beta1ApplyConfiguration": V1beta1ApplyConfiguration, "V1beta1BasicDevice": V1beta1BasicDevice, "V1beta1CELDeviceSelector": V1beta1CELDeviceSelector, + "V1beta1CapacityRequestPolicy": V1beta1CapacityRequestPolicy, + "V1beta1CapacityRequestPolicyRange": V1beta1CapacityRequestPolicyRange, + "V1beta1CapacityRequirements": V1beta1CapacityRequirements, "V1beta1ClusterTrustBundle": V1beta1ClusterTrustBundle, "V1beta1ClusterTrustBundleList": V1beta1ClusterTrustBundleList, "V1beta1ClusterTrustBundleSpec": V1beta1ClusterTrustBundleSpec, @@ -1991,15 +2059,22 @@ let typeMap: {[index: string]: any} = { "V1beta1DeviceSubRequest": V1beta1DeviceSubRequest, "V1beta1DeviceTaint": V1beta1DeviceTaint, "V1beta1DeviceToleration": V1beta1DeviceToleration, - "V1beta1ExpressionWarning": V1beta1ExpressionWarning, "V1beta1IPAddress": V1beta1IPAddress, "V1beta1IPAddressList": V1beta1IPAddressList, "V1beta1IPAddressSpec": V1beta1IPAddressSpec, + "V1beta1JSONPatch": V1beta1JSONPatch, "V1beta1LeaseCandidate": V1beta1LeaseCandidate, "V1beta1LeaseCandidateList": V1beta1LeaseCandidateList, "V1beta1LeaseCandidateSpec": V1beta1LeaseCandidateSpec, "V1beta1MatchCondition": V1beta1MatchCondition, "V1beta1MatchResources": V1beta1MatchResources, + "V1beta1MutatingAdmissionPolicy": V1beta1MutatingAdmissionPolicy, + "V1beta1MutatingAdmissionPolicyBinding": V1beta1MutatingAdmissionPolicyBinding, + "V1beta1MutatingAdmissionPolicyBindingList": V1beta1MutatingAdmissionPolicyBindingList, + "V1beta1MutatingAdmissionPolicyBindingSpec": V1beta1MutatingAdmissionPolicyBindingSpec, + "V1beta1MutatingAdmissionPolicyList": V1beta1MutatingAdmissionPolicyList, + "V1beta1MutatingAdmissionPolicySpec": V1beta1MutatingAdmissionPolicySpec, + "V1beta1Mutation": V1beta1Mutation, "V1beta1NamedRuleWithOperations": V1beta1NamedRuleWithOperations, "V1beta1NetworkDeviceData": V1beta1NetworkDeviceData, "V1beta1OpaqueDeviceConfiguration": V1beta1OpaqueDeviceConfiguration, @@ -2022,21 +2097,15 @@ let typeMap: {[index: string]: any} = { "V1beta1ServiceCIDRList": V1beta1ServiceCIDRList, "V1beta1ServiceCIDRSpec": V1beta1ServiceCIDRSpec, "V1beta1ServiceCIDRStatus": V1beta1ServiceCIDRStatus, - "V1beta1TypeChecking": V1beta1TypeChecking, - "V1beta1ValidatingAdmissionPolicy": V1beta1ValidatingAdmissionPolicy, - "V1beta1ValidatingAdmissionPolicyBinding": V1beta1ValidatingAdmissionPolicyBinding, - "V1beta1ValidatingAdmissionPolicyBindingList": V1beta1ValidatingAdmissionPolicyBindingList, - "V1beta1ValidatingAdmissionPolicyBindingSpec": V1beta1ValidatingAdmissionPolicyBindingSpec, - "V1beta1ValidatingAdmissionPolicyList": V1beta1ValidatingAdmissionPolicyList, - "V1beta1ValidatingAdmissionPolicySpec": V1beta1ValidatingAdmissionPolicySpec, - "V1beta1ValidatingAdmissionPolicyStatus": V1beta1ValidatingAdmissionPolicyStatus, - "V1beta1Validation": V1beta1Validation, "V1beta1Variable": V1beta1Variable, "V1beta1VolumeAttributesClass": V1beta1VolumeAttributesClass, "V1beta1VolumeAttributesClassList": V1beta1VolumeAttributesClassList, "V1beta2AllocatedDeviceStatus": V1beta2AllocatedDeviceStatus, "V1beta2AllocationResult": V1beta2AllocationResult, "V1beta2CELDeviceSelector": V1beta2CELDeviceSelector, + "V1beta2CapacityRequestPolicy": V1beta2CapacityRequestPolicy, + "V1beta2CapacityRequestPolicyRange": V1beta2CapacityRequestPolicyRange, + "V1beta2CapacityRequirements": V1beta2CapacityRequirements, "V1beta2Counter": V1beta2Counter, "V1beta2CounterSet": V1beta2CounterSet, "V1beta2Device": V1beta2Device, diff --git a/src/gen/models/RbacV1Subject.ts b/src/gen/models/RbacV1Subject.ts index 649273c7a1..cbd25197f6 100644 --- a/src/gen/models/RbacV1Subject.ts +++ b/src/gen/models/RbacV1Subject.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ResourceV1ResourceClaim.ts b/src/gen/models/ResourceV1ResourceClaim.ts new file mode 100644 index 0000000000..9d4d549191 --- /dev/null +++ b/src/gen/models/ResourceV1ResourceClaim.ts @@ -0,0 +1,76 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1ObjectMeta } from '../models/V1ObjectMeta.js'; +import { V1ResourceClaimSpec } from '../models/V1ResourceClaimSpec.js'; +import { V1ResourceClaimStatus } from '../models/V1ResourceClaimStatus.js'; +import { HttpFile } from '../http/http.js'; + +/** +* ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +*/ +export class 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 + */ + 'apiVersion'?: string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + */ + 'kind'?: string; + 'metadata'?: V1ObjectMeta; + 'spec': V1ResourceClaimSpec; + 'status'?: V1ResourceClaimStatus; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "apiVersion", + "baseName": "apiVersion", + "type": "string", + "format": "" + }, + { + "name": "kind", + "baseName": "kind", + "type": "string", + "format": "" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "V1ObjectMeta", + "format": "" + }, + { + "name": "spec", + "baseName": "spec", + "type": "V1ResourceClaimSpec", + "format": "" + }, + { + "name": "status", + "baseName": "status", + "type": "V1ResourceClaimStatus", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ResourceV1ResourceClaim.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/StorageV1TokenRequest.ts b/src/gen/models/StorageV1TokenRequest.ts index bf460224bf..e35b2f3f87 100644 --- a/src/gen/models/StorageV1TokenRequest.ts +++ b/src/gen/models/StorageV1TokenRequest.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIGroup.ts b/src/gen/models/V1APIGroup.ts index d2d02ad249..4b3c64ac03 100644 --- a/src/gen/models/V1APIGroup.ts +++ b/src/gen/models/V1APIGroup.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIGroupList.ts b/src/gen/models/V1APIGroupList.ts index ce115021b3..f177fa3bda 100644 --- a/src/gen/models/V1APIGroupList.ts +++ b/src/gen/models/V1APIGroupList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIResource.ts b/src/gen/models/V1APIResource.ts index aa71791de9..5465c67676 100644 --- a/src/gen/models/V1APIResource.ts +++ b/src/gen/models/V1APIResource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIResourceList.ts b/src/gen/models/V1APIResourceList.ts index d16407facb..0d649e41f8 100644 --- a/src/gen/models/V1APIResourceList.ts +++ b/src/gen/models/V1APIResourceList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIService.ts b/src/gen/models/V1APIService.ts index 7299e1bda5..26290874fd 100644 --- a/src/gen/models/V1APIService.ts +++ b/src/gen/models/V1APIService.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIServiceCondition.ts b/src/gen/models/V1APIServiceCondition.ts index 571c187e38..11ee72a98a 100644 --- a/src/gen/models/V1APIServiceCondition.ts +++ b/src/gen/models/V1APIServiceCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIServiceList.ts b/src/gen/models/V1APIServiceList.ts index 7be9c582a8..e75c9dc5bc 100644 --- a/src/gen/models/V1APIServiceList.ts +++ b/src/gen/models/V1APIServiceList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIServiceSpec.ts b/src/gen/models/V1APIServiceSpec.ts index 6f414551d6..bcf99af6b8 100644 --- a/src/gen/models/V1APIServiceSpec.ts +++ b/src/gen/models/V1APIServiceSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIServiceStatus.ts b/src/gen/models/V1APIServiceStatus.ts index 1fa54138af..67adb94dbd 100644 --- a/src/gen/models/V1APIServiceStatus.ts +++ b/src/gen/models/V1APIServiceStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIVersions.ts b/src/gen/models/V1APIVersions.ts index 4cf30011f1..f9333a9575 100644 --- a/src/gen/models/V1APIVersions.ts +++ b/src/gen/models/V1APIVersions.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AWSElasticBlockStoreVolumeSource.ts b/src/gen/models/V1AWSElasticBlockStoreVolumeSource.ts index 0f4c56f717..3e52a1a4c4 100644 --- a/src/gen/models/V1AWSElasticBlockStoreVolumeSource.ts +++ b/src/gen/models/V1AWSElasticBlockStoreVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Affinity.ts b/src/gen/models/V1Affinity.ts index a137e11828..3704e7066e 100644 --- a/src/gen/models/V1Affinity.ts +++ b/src/gen/models/V1Affinity.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AggregationRule.ts b/src/gen/models/V1AggregationRule.ts index 5ee6131218..e43049efa2 100644 --- a/src/gen/models/V1AggregationRule.ts +++ b/src/gen/models/V1AggregationRule.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AllocatedDeviceStatus.ts b/src/gen/models/V1AllocatedDeviceStatus.ts new file mode 100644 index 0000000000..aab5923288 --- /dev/null +++ b/src/gen/models/V1AllocatedDeviceStatus.ts @@ -0,0 +1,101 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1Condition } from '../models/V1Condition.js'; +import { V1NetworkDeviceData } from '../models/V1NetworkDeviceData.js'; +import { HttpFile } from '../http/http.js'; + +/** +* AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. +*/ +export class 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. + */ + 'conditions'?: Array; + /** + * Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. + */ + 'data'?: any; + /** + * Device references one device instance via its name in the driver\'s resource pool. It must be a DNS label. + */ + 'device': string; + /** + * Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. + */ + 'driver': string; + 'networkData'?: V1NetworkDeviceData; + /** + * 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. + */ + 'pool': string; + /** + * ShareID uniquely identifies an individual allocation share of the device. + */ + 'shareID'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "conditions", + "baseName": "conditions", + "type": "Array", + "format": "" + }, + { + "name": "data", + "baseName": "data", + "type": "any", + "format": "" + }, + { + "name": "device", + "baseName": "device", + "type": "string", + "format": "" + }, + { + "name": "driver", + "baseName": "driver", + "type": "string", + "format": "" + }, + { + "name": "networkData", + "baseName": "networkData", + "type": "V1NetworkDeviceData", + "format": "" + }, + { + "name": "pool", + "baseName": "pool", + "type": "string", + "format": "" + }, + { + "name": "shareID", + "baseName": "shareID", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1AllocatedDeviceStatus.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1AllocationResult.ts b/src/gen/models/V1AllocationResult.ts new file mode 100644 index 0000000000..b8480d8dce --- /dev/null +++ b/src/gen/models/V1AllocationResult.ts @@ -0,0 +1,58 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceAllocationResult } from '../models/V1DeviceAllocationResult.js'; +import { V1NodeSelector } from '../models/V1NodeSelector.js'; +import { HttpFile } from '../http/http.js'; + +/** +* AllocationResult contains attributes of an allocated resource. +*/ +export class 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. + */ + 'allocationTimestamp'?: Date; + 'devices'?: V1DeviceAllocationResult; + 'nodeSelector'?: V1NodeSelector; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "allocationTimestamp", + "baseName": "allocationTimestamp", + "type": "Date", + "format": "date-time" + }, + { + "name": "devices", + "baseName": "devices", + "type": "V1DeviceAllocationResult", + "format": "" + }, + { + "name": "nodeSelector", + "baseName": "nodeSelector", + "type": "V1NodeSelector", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1AllocationResult.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1AppArmorProfile.ts b/src/gen/models/V1AppArmorProfile.ts index c40a755a19..cb129b4a82 100644 --- a/src/gen/models/V1AppArmorProfile.ts +++ b/src/gen/models/V1AppArmorProfile.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AttachedVolume.ts b/src/gen/models/V1AttachedVolume.ts index 512ddc3660..a37d10362d 100644 --- a/src/gen/models/V1AttachedVolume.ts +++ b/src/gen/models/V1AttachedVolume.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AuditAnnotation.ts b/src/gen/models/V1AuditAnnotation.ts index 71f0e507d1..5846fc50eb 100644 --- a/src/gen/models/V1AuditAnnotation.ts +++ b/src/gen/models/V1AuditAnnotation.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AzureDiskVolumeSource.ts b/src/gen/models/V1AzureDiskVolumeSource.ts index eadc88fbca..22ea3aa0d8 100644 --- a/src/gen/models/V1AzureDiskVolumeSource.ts +++ b/src/gen/models/V1AzureDiskVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AzureFilePersistentVolumeSource.ts b/src/gen/models/V1AzureFilePersistentVolumeSource.ts index 59dd4d0eb2..2bf91ae03a 100644 --- a/src/gen/models/V1AzureFilePersistentVolumeSource.ts +++ b/src/gen/models/V1AzureFilePersistentVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AzureFileVolumeSource.ts b/src/gen/models/V1AzureFileVolumeSource.ts index 1d3da5b7db..68353ba63e 100644 --- a/src/gen/models/V1AzureFileVolumeSource.ts +++ b/src/gen/models/V1AzureFileVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Binding.ts b/src/gen/models/V1Binding.ts index 24f1b6d0ca..c8e29b68fe 100644 --- a/src/gen/models/V1Binding.ts +++ b/src/gen/models/V1Binding.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1BoundObjectReference.ts b/src/gen/models/V1BoundObjectReference.ts index 252d18a7bf..f353a2057a 100644 --- a/src/gen/models/V1BoundObjectReference.ts +++ b/src/gen/models/V1BoundObjectReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CELDeviceSelector.ts b/src/gen/models/V1CELDeviceSelector.ts new file mode 100644 index 0000000000..3478173156 --- /dev/null +++ b/src/gen/models/V1CELDeviceSelector.ts @@ -0,0 +1,42 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* CELDeviceSelector contains a CEL expression for selecting a device. +*/ +export class 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. + */ + 'expression': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "expression", + "baseName": "expression", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CELDeviceSelector.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CSIDriver.ts b/src/gen/models/V1CSIDriver.ts index a0dc6b17e8..c8243b45ee 100644 --- a/src/gen/models/V1CSIDriver.ts +++ b/src/gen/models/V1CSIDriver.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIDriverList.ts b/src/gen/models/V1CSIDriverList.ts index 986c215721..ecae18566d 100644 --- a/src/gen/models/V1CSIDriverList.ts +++ b/src/gen/models/V1CSIDriverList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIDriverSpec.ts b/src/gen/models/V1CSIDriverSpec.ts index b018f9ce9a..868d8307bc 100644 --- a/src/gen/models/V1CSIDriverSpec.ts +++ b/src/gen/models/V1CSIDriverSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import { HttpFile } from '../http/http.js'; */ export class 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. + * 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. */ 'attachRequired'?: boolean; /** @@ -26,7 +26,7 @@ export class V1CSIDriverSpec { */ 'fsGroupPolicy'?: string; /** - * 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. + * nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. */ 'nodeAllocatableUpdatePeriodSeconds'?: number; /** diff --git a/src/gen/models/V1CSINode.ts b/src/gen/models/V1CSINode.ts index 8d8ad57efd..aad7111591 100644 --- a/src/gen/models/V1CSINode.ts +++ b/src/gen/models/V1CSINode.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSINodeDriver.ts b/src/gen/models/V1CSINodeDriver.ts index cb54a472df..43833e4c79 100644 --- a/src/gen/models/V1CSINodeDriver.ts +++ b/src/gen/models/V1CSINodeDriver.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSINodeList.ts b/src/gen/models/V1CSINodeList.ts index acf439fe85..cf98c2f3c5 100644 --- a/src/gen/models/V1CSINodeList.ts +++ b/src/gen/models/V1CSINodeList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSINodeSpec.ts b/src/gen/models/V1CSINodeSpec.ts index 157e839724..4b44f128f3 100644 --- a/src/gen/models/V1CSINodeSpec.ts +++ b/src/gen/models/V1CSINodeSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIPersistentVolumeSource.ts b/src/gen/models/V1CSIPersistentVolumeSource.ts index b5ee37ce0c..248c818f14 100644 --- a/src/gen/models/V1CSIPersistentVolumeSource.ts +++ b/src/gen/models/V1CSIPersistentVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIStorageCapacity.ts b/src/gen/models/V1CSIStorageCapacity.ts index ca5bafadb9..1ab50b5186 100644 --- a/src/gen/models/V1CSIStorageCapacity.ts +++ b/src/gen/models/V1CSIStorageCapacity.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIStorageCapacityList.ts b/src/gen/models/V1CSIStorageCapacityList.ts index be3bed8964..f5bafa7d3b 100644 --- a/src/gen/models/V1CSIStorageCapacityList.ts +++ b/src/gen/models/V1CSIStorageCapacityList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIVolumeSource.ts b/src/gen/models/V1CSIVolumeSource.ts index b44677bfeb..68a1ad5b5b 100644 --- a/src/gen/models/V1CSIVolumeSource.ts +++ b/src/gen/models/V1CSIVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Capabilities.ts b/src/gen/models/V1Capabilities.ts index 16f80e08da..4a84f05d7a 100644 --- a/src/gen/models/V1Capabilities.ts +++ b/src/gen/models/V1Capabilities.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CapacityRequestPolicy.ts b/src/gen/models/V1CapacityRequestPolicy.ts new file mode 100644 index 0000000000..c94c3b7e6b --- /dev/null +++ b/src/gen/models/V1CapacityRequestPolicy.ts @@ -0,0 +1,60 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1CapacityRequestPolicyRange } from '../models/V1CapacityRequestPolicyRange.js'; +import { HttpFile } from '../http/http.js'; + +/** +* CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. +*/ +export class 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. + */ + '_default'?: string; + 'validRange'?: V1CapacityRequestPolicyRange; + /** + * 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. + */ + 'validValues'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "_default", + "baseName": "default", + "type": "string", + "format": "" + }, + { + "name": "validRange", + "baseName": "validRange", + "type": "V1CapacityRequestPolicyRange", + "format": "" + }, + { + "name": "validValues", + "baseName": "validValues", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CapacityRequestPolicy.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CapacityRequestPolicyRange.ts b/src/gen/models/V1CapacityRequestPolicyRange.ts new file mode 100644 index 0000000000..3afb756ba2 --- /dev/null +++ b/src/gen/models/V1CapacityRequestPolicyRange.ts @@ -0,0 +1,62 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. +*/ +export class 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. + */ + 'max'?: string; + /** + * 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. + */ + 'min': string; + /** + * 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. + */ + 'step'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "max", + "baseName": "max", + "type": "string", + "format": "" + }, + { + "name": "min", + "baseName": "min", + "type": "string", + "format": "" + }, + { + "name": "step", + "baseName": "step", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CapacityRequestPolicyRange.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CapacityRequirements.ts b/src/gen/models/V1CapacityRequirements.ts new file mode 100644 index 0000000000..3eafa69e6b --- /dev/null +++ b/src/gen/models/V1CapacityRequirements.ts @@ -0,0 +1,42 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* CapacityRequirements defines the capacity requirements for a specific device request. +*/ +export class 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. + */ + 'requests'?: { [key: string]: string; }; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "requests", + "baseName": "requests", + "type": "{ [key: string]: string; }", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CapacityRequirements.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CephFSPersistentVolumeSource.ts b/src/gen/models/V1CephFSPersistentVolumeSource.ts index 7a119820ad..840e3aea6c 100644 --- a/src/gen/models/V1CephFSPersistentVolumeSource.ts +++ b/src/gen/models/V1CephFSPersistentVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CephFSVolumeSource.ts b/src/gen/models/V1CephFSVolumeSource.ts index 74fb32764f..a7b350e616 100644 --- a/src/gen/models/V1CephFSVolumeSource.ts +++ b/src/gen/models/V1CephFSVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequest.ts b/src/gen/models/V1CertificateSigningRequest.ts index 3148cfd942..e124dd004c 100644 --- a/src/gen/models/V1CertificateSigningRequest.ts +++ b/src/gen/models/V1CertificateSigningRequest.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequestCondition.ts b/src/gen/models/V1CertificateSigningRequestCondition.ts index ce2505548c..8decfda231 100644 --- a/src/gen/models/V1CertificateSigningRequestCondition.ts +++ b/src/gen/models/V1CertificateSigningRequestCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequestList.ts b/src/gen/models/V1CertificateSigningRequestList.ts index 71fd8aafb3..264e47e622 100644 --- a/src/gen/models/V1CertificateSigningRequestList.ts +++ b/src/gen/models/V1CertificateSigningRequestList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequestSpec.ts b/src/gen/models/V1CertificateSigningRequestSpec.ts index 81ebab7c32..df7510585e 100644 --- a/src/gen/models/V1CertificateSigningRequestSpec.ts +++ b/src/gen/models/V1CertificateSigningRequestSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequestStatus.ts b/src/gen/models/V1CertificateSigningRequestStatus.ts index bf11d3db8b..b592847a56 100644 --- a/src/gen/models/V1CertificateSigningRequestStatus.ts +++ b/src/gen/models/V1CertificateSigningRequestStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CinderPersistentVolumeSource.ts b/src/gen/models/V1CinderPersistentVolumeSource.ts index 0137c74479..5cebda4f15 100644 --- a/src/gen/models/V1CinderPersistentVolumeSource.ts +++ b/src/gen/models/V1CinderPersistentVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CinderVolumeSource.ts b/src/gen/models/V1CinderVolumeSource.ts index 75db927737..a5deb5a0f4 100644 --- a/src/gen/models/V1CinderVolumeSource.ts +++ b/src/gen/models/V1CinderVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClientIPConfig.ts b/src/gen/models/V1ClientIPConfig.ts index b1670d9bfc..c1086ca08e 100644 --- a/src/gen/models/V1ClientIPConfig.ts +++ b/src/gen/models/V1ClientIPConfig.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterRole.ts b/src/gen/models/V1ClusterRole.ts index b30bd447b4..7b70f07194 100644 --- a/src/gen/models/V1ClusterRole.ts +++ b/src/gen/models/V1ClusterRole.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterRoleBinding.ts b/src/gen/models/V1ClusterRoleBinding.ts index 30219673ed..9d28735e73 100644 --- a/src/gen/models/V1ClusterRoleBinding.ts +++ b/src/gen/models/V1ClusterRoleBinding.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterRoleBindingList.ts b/src/gen/models/V1ClusterRoleBindingList.ts index e6798622d8..53079945bb 100644 --- a/src/gen/models/V1ClusterRoleBindingList.ts +++ b/src/gen/models/V1ClusterRoleBindingList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterRoleList.ts b/src/gen/models/V1ClusterRoleList.ts index 9c48aad122..b05f324b1b 100644 --- a/src/gen/models/V1ClusterRoleList.ts +++ b/src/gen/models/V1ClusterRoleList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterTrustBundleProjection.ts b/src/gen/models/V1ClusterTrustBundleProjection.ts index 402173e5ac..dd880cc024 100644 --- a/src/gen/models/V1ClusterTrustBundleProjection.ts +++ b/src/gen/models/V1ClusterTrustBundleProjection.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ComponentCondition.ts b/src/gen/models/V1ComponentCondition.ts index c3a71b0ac9..ef6cef82c7 100644 --- a/src/gen/models/V1ComponentCondition.ts +++ b/src/gen/models/V1ComponentCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ComponentStatus.ts b/src/gen/models/V1ComponentStatus.ts index 10c726e39f..0eceaeed8f 100644 --- a/src/gen/models/V1ComponentStatus.ts +++ b/src/gen/models/V1ComponentStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ComponentStatusList.ts b/src/gen/models/V1ComponentStatusList.ts index f2b13032bf..2b31aa6aef 100644 --- a/src/gen/models/V1ComponentStatusList.ts +++ b/src/gen/models/V1ComponentStatusList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Condition.ts b/src/gen/models/V1Condition.ts index 57391a2df0..67cc73f58b 100644 --- a/src/gen/models/V1Condition.ts +++ b/src/gen/models/V1Condition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMap.ts b/src/gen/models/V1ConfigMap.ts index 3aec371526..e49d55ef9c 100644 --- a/src/gen/models/V1ConfigMap.ts +++ b/src/gen/models/V1ConfigMap.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapEnvSource.ts b/src/gen/models/V1ConfigMapEnvSource.ts index 0d4ff54aad..cdab7f5ec9 100644 --- a/src/gen/models/V1ConfigMapEnvSource.ts +++ b/src/gen/models/V1ConfigMapEnvSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapKeySelector.ts b/src/gen/models/V1ConfigMapKeySelector.ts index 48ac8d7662..bd42ac0033 100644 --- a/src/gen/models/V1ConfigMapKeySelector.ts +++ b/src/gen/models/V1ConfigMapKeySelector.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapList.ts b/src/gen/models/V1ConfigMapList.ts index 0d8349586c..e9bed71663 100644 --- a/src/gen/models/V1ConfigMapList.ts +++ b/src/gen/models/V1ConfigMapList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapNodeConfigSource.ts b/src/gen/models/V1ConfigMapNodeConfigSource.ts index e7caadaebd..69a2d5069e 100644 --- a/src/gen/models/V1ConfigMapNodeConfigSource.ts +++ b/src/gen/models/V1ConfigMapNodeConfigSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapProjection.ts b/src/gen/models/V1ConfigMapProjection.ts index deb9efe83a..2a3f69f2ef 100644 --- a/src/gen/models/V1ConfigMapProjection.ts +++ b/src/gen/models/V1ConfigMapProjection.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapVolumeSource.ts b/src/gen/models/V1ConfigMapVolumeSource.ts index 62b53afe18..fe9b506a21 100644 --- a/src/gen/models/V1ConfigMapVolumeSource.ts +++ b/src/gen/models/V1ConfigMapVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Container.ts b/src/gen/models/V1Container.ts index ec0647df3c..0d6b3fbfa6 100644 --- a/src/gen/models/V1Container.ts +++ b/src/gen/models/V1Container.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,6 +12,7 @@ import { V1ContainerPort } from '../models/V1ContainerPort.js'; import { V1ContainerResizePolicy } from '../models/V1ContainerResizePolicy.js'; +import { V1ContainerRestartRule } from '../models/V1ContainerRestartRule.js'; import { V1EnvFromSource } from '../models/V1EnvFromSource.js'; import { V1EnvVar } from '../models/V1EnvVar.js'; import { V1Lifecycle } from '../models/V1Lifecycle.js'; @@ -39,7 +40,7 @@ export class V1Container { */ 'env'?: Array; /** - * 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. + * 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. */ 'envFrom'?: Array; /** @@ -67,9 +68,13 @@ export class V1Container { 'resizePolicy'?: Array; 'resources'?: V1ResourceRequirements; /** - * 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. + * 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. */ 'restartPolicy'?: string; + /** + * 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. + */ + 'restartPolicyRules'?: Array; 'securityContext'?: V1SecurityContext; 'startupProbe'?: V1Probe; /** @@ -194,6 +199,12 @@ export class V1Container { "type": "string", "format": "" }, + { + "name": "restartPolicyRules", + "baseName": "restartPolicyRules", + "type": "Array", + "format": "" + }, { "name": "securityContext", "baseName": "securityContext", diff --git a/src/gen/models/V1ContainerExtendedResourceRequest.ts b/src/gen/models/V1ContainerExtendedResourceRequest.ts new file mode 100644 index 0000000000..51ec116925 --- /dev/null +++ b/src/gen/models/V1ContainerExtendedResourceRequest.ts @@ -0,0 +1,62 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name. +*/ +export class V1ContainerExtendedResourceRequest { + /** + * The name of the container requesting resources. + */ + 'containerName': string; + /** + * The name of the request in the special ResourceClaim which corresponds to the extended resource. + */ + 'requestName': string; + /** + * The name of the extended resource in that container which gets backed by DRA. + */ + 'resourceName': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "containerName", + "baseName": "containerName", + "type": "string", + "format": "" + }, + { + "name": "requestName", + "baseName": "requestName", + "type": "string", + "format": "" + }, + { + "name": "resourceName", + "baseName": "resourceName", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1ContainerExtendedResourceRequest.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1ContainerImage.ts b/src/gen/models/V1ContainerImage.ts index 18610d6af4..1e825215d3 100644 --- a/src/gen/models/V1ContainerImage.ts +++ b/src/gen/models/V1ContainerImage.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerPort.ts b/src/gen/models/V1ContainerPort.ts index a89575147f..b9ae26e018 100644 --- a/src/gen/models/V1ContainerPort.ts +++ b/src/gen/models/V1ContainerPort.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerResizePolicy.ts b/src/gen/models/V1ContainerResizePolicy.ts index 5a3bebbcf8..a674af1b71 100644 --- a/src/gen/models/V1ContainerResizePolicy.ts +++ b/src/gen/models/V1ContainerResizePolicy.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerRestartRule.ts b/src/gen/models/V1ContainerRestartRule.ts new file mode 100644 index 0000000000..9a43bb595b --- /dev/null +++ b/src/gen/models/V1ContainerRestartRule.ts @@ -0,0 +1,50 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1ContainerRestartRuleOnExitCodes } from '../models/V1ContainerRestartRuleOnExitCodes.js'; +import { HttpFile } from '../http/http.js'; + +/** +* ContainerRestartRule describes how a container exit is handled. +*/ +export class V1ContainerRestartRule { + /** + * Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container. + */ + 'action': string; + 'exitCodes'?: V1ContainerRestartRuleOnExitCodes; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "action", + "baseName": "action", + "type": "string", + "format": "" + }, + { + "name": "exitCodes", + "baseName": "exitCodes", + "type": "V1ContainerRestartRuleOnExitCodes", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1ContainerRestartRule.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1ContainerRestartRuleOnExitCodes.ts b/src/gen/models/V1ContainerRestartRuleOnExitCodes.ts new file mode 100644 index 0000000000..42ddd8ddaa --- /dev/null +++ b/src/gen/models/V1ContainerRestartRuleOnExitCodes.ts @@ -0,0 +1,52 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes. +*/ +export class 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. + */ + 'operator': string; + /** + * Specifies the set of values to check for container exit codes. At most 255 elements are allowed. + */ + 'values'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "operator", + "baseName": "operator", + "type": "string", + "format": "" + }, + { + "name": "values", + "baseName": "values", + "type": "Array", + "format": "int32" + } ]; + + static getAttributeTypeMap() { + return V1ContainerRestartRuleOnExitCodes.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1ContainerState.ts b/src/gen/models/V1ContainerState.ts index 26fad0c547..1c6ee91deb 100644 --- a/src/gen/models/V1ContainerState.ts +++ b/src/gen/models/V1ContainerState.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerStateRunning.ts b/src/gen/models/V1ContainerStateRunning.ts index 53ba40fd8a..74694f96af 100644 --- a/src/gen/models/V1ContainerStateRunning.ts +++ b/src/gen/models/V1ContainerStateRunning.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerStateTerminated.ts b/src/gen/models/V1ContainerStateTerminated.ts index a9a3ff30a5..d79f278a5e 100644 --- a/src/gen/models/V1ContainerStateTerminated.ts +++ b/src/gen/models/V1ContainerStateTerminated.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerStateWaiting.ts b/src/gen/models/V1ContainerStateWaiting.ts index 72ad82b66f..e94684962b 100644 --- a/src/gen/models/V1ContainerStateWaiting.ts +++ b/src/gen/models/V1ContainerStateWaiting.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerStatus.ts b/src/gen/models/V1ContainerStatus.ts index b5150066e5..f4424486a1 100644 --- a/src/gen/models/V1ContainerStatus.ts +++ b/src/gen/models/V1ContainerStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerUser.ts b/src/gen/models/V1ContainerUser.ts index 6000dfcfc8..245b2a0e34 100644 --- a/src/gen/models/V1ContainerUser.ts +++ b/src/gen/models/V1ContainerUser.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ControllerRevision.ts b/src/gen/models/V1ControllerRevision.ts index 2e9ad49db7..bbbc4fbfdc 100644 --- a/src/gen/models/V1ControllerRevision.ts +++ b/src/gen/models/V1ControllerRevision.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ControllerRevisionList.ts b/src/gen/models/V1ControllerRevisionList.ts index 3ecc0835fd..c4f070b247 100644 --- a/src/gen/models/V1ControllerRevisionList.ts +++ b/src/gen/models/V1ControllerRevisionList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Counter.ts b/src/gen/models/V1Counter.ts new file mode 100644 index 0000000000..3c17d27a06 --- /dev/null +++ b/src/gen/models/V1Counter.ts @@ -0,0 +1,42 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* Counter describes a quantity associated with a device. +*/ +export class V1Counter { + /** + * Value defines how much of a certain device counter is available. + */ + 'value': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "value", + "baseName": "value", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1Counter.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CounterSet.ts b/src/gen/models/V1CounterSet.ts new file mode 100644 index 0000000000..dbab57c539 --- /dev/null +++ b/src/gen/models/V1CounterSet.ts @@ -0,0 +1,53 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1Counter } from '../models/V1Counter.js'; +import { HttpFile } from '../http/http.js'; + +/** +* CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. +*/ +export class V1CounterSet { + /** + * 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. + */ + 'counters': { [key: string]: V1Counter; }; + /** + * Name defines the name of the counter set. It must be a DNS label. + */ + 'name': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "counters", + "baseName": "counters", + "type": "{ [key: string]: V1Counter; }", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CounterSet.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CronJob.ts b/src/gen/models/V1CronJob.ts index 25c5746b51..d73dc9fe9f 100644 --- a/src/gen/models/V1CronJob.ts +++ b/src/gen/models/V1CronJob.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CronJobList.ts b/src/gen/models/V1CronJobList.ts index 17a6c66f2b..45b4e62700 100644 --- a/src/gen/models/V1CronJobList.ts +++ b/src/gen/models/V1CronJobList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CronJobSpec.ts b/src/gen/models/V1CronJobSpec.ts index c726617fa9..4fe58c33d6 100644 --- a/src/gen/models/V1CronJobSpec.ts +++ b/src/gen/models/V1CronJobSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CronJobStatus.ts b/src/gen/models/V1CronJobStatus.ts index 164f20d4df..c94f7d6614 100644 --- a/src/gen/models/V1CronJobStatus.ts +++ b/src/gen/models/V1CronJobStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CrossVersionObjectReference.ts b/src/gen/models/V1CrossVersionObjectReference.ts index 6425ed47ea..9a0cc8b6f6 100644 --- a/src/gen/models/V1CrossVersionObjectReference.ts +++ b/src/gen/models/V1CrossVersionObjectReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceColumnDefinition.ts b/src/gen/models/V1CustomResourceColumnDefinition.ts index e05dd40eef..ffa7de464a 100644 --- a/src/gen/models/V1CustomResourceColumnDefinition.ts +++ b/src/gen/models/V1CustomResourceColumnDefinition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceConversion.ts b/src/gen/models/V1CustomResourceConversion.ts index 35d9304667..d0e255b403 100644 --- a/src/gen/models/V1CustomResourceConversion.ts +++ b/src/gen/models/V1CustomResourceConversion.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinition.ts b/src/gen/models/V1CustomResourceDefinition.ts index abab9bf72e..ddc9c874d2 100644 --- a/src/gen/models/V1CustomResourceDefinition.ts +++ b/src/gen/models/V1CustomResourceDefinition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionCondition.ts b/src/gen/models/V1CustomResourceDefinitionCondition.ts index ae426a4265..eb5b96d436 100644 --- a/src/gen/models/V1CustomResourceDefinitionCondition.ts +++ b/src/gen/models/V1CustomResourceDefinitionCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionList.ts b/src/gen/models/V1CustomResourceDefinitionList.ts index cc418ece5f..a169956ca2 100644 --- a/src/gen/models/V1CustomResourceDefinitionList.ts +++ b/src/gen/models/V1CustomResourceDefinitionList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionNames.ts b/src/gen/models/V1CustomResourceDefinitionNames.ts index 07f9814477..ffc02e9802 100644 --- a/src/gen/models/V1CustomResourceDefinitionNames.ts +++ b/src/gen/models/V1CustomResourceDefinitionNames.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionSpec.ts b/src/gen/models/V1CustomResourceDefinitionSpec.ts index e79b2e4228..190a2eadb8 100644 --- a/src/gen/models/V1CustomResourceDefinitionSpec.ts +++ b/src/gen/models/V1CustomResourceDefinitionSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionStatus.ts b/src/gen/models/V1CustomResourceDefinitionStatus.ts index cf7dc894c4..fc7a65d3d2 100644 --- a/src/gen/models/V1CustomResourceDefinitionStatus.ts +++ b/src/gen/models/V1CustomResourceDefinitionStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionVersion.ts b/src/gen/models/V1CustomResourceDefinitionVersion.ts index 6949b2e1c7..a8124e58e5 100644 --- a/src/gen/models/V1CustomResourceDefinitionVersion.ts +++ b/src/gen/models/V1CustomResourceDefinitionVersion.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceSubresourceScale.ts b/src/gen/models/V1CustomResourceSubresourceScale.ts index 35758622de..8384c51cac 100644 --- a/src/gen/models/V1CustomResourceSubresourceScale.ts +++ b/src/gen/models/V1CustomResourceSubresourceScale.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceSubresources.ts b/src/gen/models/V1CustomResourceSubresources.ts index 2a62f9a550..da4419916c 100644 --- a/src/gen/models/V1CustomResourceSubresources.ts +++ b/src/gen/models/V1CustomResourceSubresources.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceValidation.ts b/src/gen/models/V1CustomResourceValidation.ts index f38796df19..e0e40bb712 100644 --- a/src/gen/models/V1CustomResourceValidation.ts +++ b/src/gen/models/V1CustomResourceValidation.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonEndpoint.ts b/src/gen/models/V1DaemonEndpoint.ts index 57dd4e16a9..d861a7b315 100644 --- a/src/gen/models/V1DaemonEndpoint.ts +++ b/src/gen/models/V1DaemonEndpoint.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSet.ts b/src/gen/models/V1DaemonSet.ts index b05f6f8f26..fe4b4e78de 100644 --- a/src/gen/models/V1DaemonSet.ts +++ b/src/gen/models/V1DaemonSet.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetCondition.ts b/src/gen/models/V1DaemonSetCondition.ts index ac3349bb7c..3611f67a6f 100644 --- a/src/gen/models/V1DaemonSetCondition.ts +++ b/src/gen/models/V1DaemonSetCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetList.ts b/src/gen/models/V1DaemonSetList.ts index da2cfe46b5..4ffb55b295 100644 --- a/src/gen/models/V1DaemonSetList.ts +++ b/src/gen/models/V1DaemonSetList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetSpec.ts b/src/gen/models/V1DaemonSetSpec.ts index 981a6fb7b2..a92e5b6a13 100644 --- a/src/gen/models/V1DaemonSetSpec.ts +++ b/src/gen/models/V1DaemonSetSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetStatus.ts b/src/gen/models/V1DaemonSetStatus.ts index 16eada4c60..ca8f9005bd 100644 --- a/src/gen/models/V1DaemonSetStatus.ts +++ b/src/gen/models/V1DaemonSetStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetUpdateStrategy.ts b/src/gen/models/V1DaemonSetUpdateStrategy.ts index 77d2ae877d..b8f783b39b 100644 --- a/src/gen/models/V1DaemonSetUpdateStrategy.ts +++ b/src/gen/models/V1DaemonSetUpdateStrategy.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeleteOptions.ts b/src/gen/models/V1DeleteOptions.ts index fea76a7c07..a09306bb1d 100644 --- a/src/gen/models/V1DeleteOptions.ts +++ b/src/gen/models/V1DeleteOptions.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Deployment.ts b/src/gen/models/V1Deployment.ts index 9943df46d3..230012a4da 100644 --- a/src/gen/models/V1Deployment.ts +++ b/src/gen/models/V1Deployment.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentCondition.ts b/src/gen/models/V1DeploymentCondition.ts index bf0f4081ff..ea450de5a9 100644 --- a/src/gen/models/V1DeploymentCondition.ts +++ b/src/gen/models/V1DeploymentCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentList.ts b/src/gen/models/V1DeploymentList.ts index 327fdfd88a..f701f4c0b0 100644 --- a/src/gen/models/V1DeploymentList.ts +++ b/src/gen/models/V1DeploymentList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentSpec.ts b/src/gen/models/V1DeploymentSpec.ts index 219f74cf48..79eb56f345 100644 --- a/src/gen/models/V1DeploymentSpec.ts +++ b/src/gen/models/V1DeploymentSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentStatus.ts b/src/gen/models/V1DeploymentStatus.ts index e5f45a91da..301d9bba75 100644 --- a/src/gen/models/V1DeploymentStatus.ts +++ b/src/gen/models/V1DeploymentStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentStrategy.ts b/src/gen/models/V1DeploymentStrategy.ts index c4402c5638..754191c25d 100644 --- a/src/gen/models/V1DeploymentStrategy.ts +++ b/src/gen/models/V1DeploymentStrategy.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Device.ts b/src/gen/models/V1Device.ts new file mode 100644 index 0000000000..d9b6756db3 --- /dev/null +++ b/src/gen/models/V1Device.ts @@ -0,0 +1,154 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceAttribute } from '../models/V1DeviceAttribute.js'; +import { V1DeviceCapacity } from '../models/V1DeviceCapacity.js'; +import { V1DeviceCounterConsumption } from '../models/V1DeviceCounterConsumption.js'; +import { V1DeviceTaint } from '../models/V1DeviceTaint.js'; +import { V1NodeSelector } from '../models/V1NodeSelector.js'; +import { HttpFile } from '../http/http.js'; + +/** +* Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. +*/ +export class 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. + */ + 'allNodes'?: boolean; + /** + * AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. + */ + 'allowMultipleAllocations'?: boolean; + /** + * 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. + */ + 'attributes'?: { [key: string]: V1DeviceAttribute; }; + /** + * BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindingConditions'?: Array; + /** + * BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindingFailureConditions'?: Array; + /** + * BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindsToNode'?: boolean; + /** + * 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. + */ + 'capacity'?: { [key: string]: V1DeviceCapacity; }; + /** + * 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). + */ + 'consumesCounters'?: Array; + /** + * Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. + */ + 'name': string; + /** + * NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + */ + 'nodeName'?: string; + 'nodeSelector'?: V1NodeSelector; + /** + * 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. + */ + 'taints'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "allNodes", + "baseName": "allNodes", + "type": "boolean", + "format": "" + }, + { + "name": "allowMultipleAllocations", + "baseName": "allowMultipleAllocations", + "type": "boolean", + "format": "" + }, + { + "name": "attributes", + "baseName": "attributes", + "type": "{ [key: string]: V1DeviceAttribute; }", + "format": "" + }, + { + "name": "bindingConditions", + "baseName": "bindingConditions", + "type": "Array", + "format": "" + }, + { + "name": "bindingFailureConditions", + "baseName": "bindingFailureConditions", + "type": "Array", + "format": "" + }, + { + "name": "bindsToNode", + "baseName": "bindsToNode", + "type": "boolean", + "format": "" + }, + { + "name": "capacity", + "baseName": "capacity", + "type": "{ [key: string]: V1DeviceCapacity; }", + "format": "" + }, + { + "name": "consumesCounters", + "baseName": "consumesCounters", + "type": "Array", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + }, + { + "name": "nodeName", + "baseName": "nodeName", + "type": "string", + "format": "" + }, + { + "name": "nodeSelector", + "baseName": "nodeSelector", + "type": "V1NodeSelector", + "format": "" + }, + { + "name": "taints", + "baseName": "taints", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1Device.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceAllocationConfiguration.ts b/src/gen/models/V1DeviceAllocationConfiguration.ts new file mode 100644 index 0000000000..ecef81e0d2 --- /dev/null +++ b/src/gen/models/V1DeviceAllocationConfiguration.ts @@ -0,0 +1,60 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1OpaqueDeviceConfiguration } from '../models/V1OpaqueDeviceConfiguration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceAllocationConfiguration gets embedded in an AllocationResult. +*/ +export class V1DeviceAllocationConfiguration { + 'opaque'?: V1OpaqueDeviceConfiguration; + /** + * 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. + */ + 'requests'?: Array; + /** + * 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. + */ + 'source': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "opaque", + "baseName": "opaque", + "type": "V1OpaqueDeviceConfiguration", + "format": "" + }, + { + "name": "requests", + "baseName": "requests", + "type": "Array", + "format": "" + }, + { + "name": "source", + "baseName": "source", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceAllocationConfiguration.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceAllocationResult.ts b/src/gen/models/V1DeviceAllocationResult.ts new file mode 100644 index 0000000000..8c3022a3d0 --- /dev/null +++ b/src/gen/models/V1DeviceAllocationResult.ts @@ -0,0 +1,54 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceAllocationConfiguration } from '../models/V1DeviceAllocationConfiguration.js'; +import { V1DeviceRequestAllocationResult } from '../models/V1DeviceRequestAllocationResult.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceAllocationResult is the result of allocating devices. +*/ +export class 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. + */ + 'config'?: Array; + /** + * Results lists all allocated devices. + */ + 'results'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "config", + "baseName": "config", + "type": "Array", + "format": "" + }, + { + "name": "results", + "baseName": "results", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceAllocationResult.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceAttribute.ts b/src/gen/models/V1DeviceAttribute.ts new file mode 100644 index 0000000000..21e386ea95 --- /dev/null +++ b/src/gen/models/V1DeviceAttribute.ts @@ -0,0 +1,72 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* DeviceAttribute must have exactly one field set. +*/ +export class V1DeviceAttribute { + /** + * BoolValue is a true/false value. + */ + 'bool'?: boolean; + /** + * IntValue is a number. + */ + '_int'?: number; + /** + * StringValue is a string. Must not be longer than 64 characters. + */ + 'string'?: string; + /** + * VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. + */ + 'version'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "bool", + "baseName": "bool", + "type": "boolean", + "format": "" + }, + { + "name": "_int", + "baseName": "int", + "type": "number", + "format": "int64" + }, + { + "name": "string", + "baseName": "string", + "type": "string", + "format": "" + }, + { + "name": "version", + "baseName": "version", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceAttribute.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceCapacity.ts b/src/gen/models/V1DeviceCapacity.ts new file mode 100644 index 0000000000..5e57fb1cf3 --- /dev/null +++ b/src/gen/models/V1DeviceCapacity.ts @@ -0,0 +1,50 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1CapacityRequestPolicy } from '../models/V1CapacityRequestPolicy.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceCapacity describes a quantity associated with a device. +*/ +export class V1DeviceCapacity { + 'requestPolicy'?: V1CapacityRequestPolicy; + /** + * 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. + */ + 'value': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "requestPolicy", + "baseName": "requestPolicy", + "type": "V1CapacityRequestPolicy", + "format": "" + }, + { + "name": "value", + "baseName": "value", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceCapacity.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClaim.ts b/src/gen/models/V1DeviceClaim.ts new file mode 100644 index 0000000000..34ec6664ed --- /dev/null +++ b/src/gen/models/V1DeviceClaim.ts @@ -0,0 +1,65 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceClaimConfiguration } from '../models/V1DeviceClaimConfiguration.js'; +import { V1DeviceConstraint } from '../models/V1DeviceConstraint.js'; +import { V1DeviceRequest } from '../models/V1DeviceRequest.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClaim defines how to request devices with a ResourceClaim. +*/ +export class V1DeviceClaim { + /** + * This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. + */ + 'config'?: Array; + /** + * These constraints must be satisfied by the set of devices that get allocated for the claim. + */ + 'constraints'?: Array; + /** + * Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. + */ + 'requests'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "config", + "baseName": "config", + "type": "Array", + "format": "" + }, + { + "name": "constraints", + "baseName": "constraints", + "type": "Array", + "format": "" + }, + { + "name": "requests", + "baseName": "requests", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClaim.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClaimConfiguration.ts b/src/gen/models/V1DeviceClaimConfiguration.ts new file mode 100644 index 0000000000..083e569ae3 --- /dev/null +++ b/src/gen/models/V1DeviceClaimConfiguration.ts @@ -0,0 +1,50 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1OpaqueDeviceConfiguration } from '../models/V1OpaqueDeviceConfiguration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. +*/ +export class V1DeviceClaimConfiguration { + 'opaque'?: V1OpaqueDeviceConfiguration; + /** + * 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. + */ + 'requests'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "opaque", + "baseName": "opaque", + "type": "V1OpaqueDeviceConfiguration", + "format": "" + }, + { + "name": "requests", + "baseName": "requests", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClaimConfiguration.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClass.ts b/src/gen/models/V1DeviceClass.ts new file mode 100644 index 0000000000..0744f3083e --- /dev/null +++ b/src/gen/models/V1DeviceClass.ts @@ -0,0 +1,68 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceClassSpec } from '../models/V1DeviceClassSpec.js'; +import { V1ObjectMeta } from '../models/V1ObjectMeta.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +*/ +export class 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 + */ + 'apiVersion'?: string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + */ + 'kind'?: string; + 'metadata'?: V1ObjectMeta; + 'spec': V1DeviceClassSpec; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "apiVersion", + "baseName": "apiVersion", + "type": "string", + "format": "" + }, + { + "name": "kind", + "baseName": "kind", + "type": "string", + "format": "" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "V1ObjectMeta", + "format": "" + }, + { + "name": "spec", + "baseName": "spec", + "type": "V1DeviceClassSpec", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClass.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClassConfiguration.ts b/src/gen/models/V1DeviceClassConfiguration.ts new file mode 100644 index 0000000000..515098e8a7 --- /dev/null +++ b/src/gen/models/V1DeviceClassConfiguration.ts @@ -0,0 +1,40 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1OpaqueDeviceConfiguration } from '../models/V1OpaqueDeviceConfiguration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClassConfiguration is used in DeviceClass. +*/ +export class V1DeviceClassConfiguration { + 'opaque'?: V1OpaqueDeviceConfiguration; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "opaque", + "baseName": "opaque", + "type": "V1OpaqueDeviceConfiguration", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClassConfiguration.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClassList.ts b/src/gen/models/V1DeviceClassList.ts new file mode 100644 index 0000000000..3b12d08782 --- /dev/null +++ b/src/gen/models/V1DeviceClassList.ts @@ -0,0 +1,71 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceClass } from '../models/V1DeviceClass.js'; +import { V1ListMeta } from '../models/V1ListMeta.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClassList is a collection of classes. +*/ +export class 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 + */ + 'apiVersion'?: string; + /** + * Items is the list of resource classes. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + */ + 'kind'?: string; + 'metadata'?: V1ListMeta; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "apiVersion", + "baseName": "apiVersion", + "type": "string", + "format": "" + }, + { + "name": "items", + "baseName": "items", + "type": "Array", + "format": "" + }, + { + "name": "kind", + "baseName": "kind", + "type": "string", + "format": "" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "V1ListMeta", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClassList.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClassSpec.ts b/src/gen/models/V1DeviceClassSpec.ts new file mode 100644 index 0000000000..7d1a67ae44 --- /dev/null +++ b/src/gen/models/V1DeviceClassSpec.ts @@ -0,0 +1,64 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceClassConfiguration } from '../models/V1DeviceClassConfiguration.js'; +import { V1DeviceSelector } from '../models/V1DeviceSelector.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. +*/ +export class 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. + */ + 'config'?: Array; + /** + * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod\'s extended resource requests. It has the same format as the name of a pod\'s extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod\'s extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. + */ + 'extendedResourceName'?: string; + /** + * Each selector must be satisfied by a device which is claimed via this class. + */ + 'selectors'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "config", + "baseName": "config", + "type": "Array", + "format": "" + }, + { + "name": "extendedResourceName", + "baseName": "extendedResourceName", + "type": "string", + "format": "" + }, + { + "name": "selectors", + "baseName": "selectors", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClassSpec.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceConstraint.ts b/src/gen/models/V1DeviceConstraint.ts new file mode 100644 index 0000000000..74adafe1b7 --- /dev/null +++ b/src/gen/models/V1DeviceConstraint.ts @@ -0,0 +1,62 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* DeviceConstraint must have exactly one field set besides Requests. +*/ +export class 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. + */ + 'distinctAttribute'?: string; + /** + * MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn\'t, then it also will not be chosen. Must include the domain qualifier. + */ + 'matchAttribute'?: string; + /** + * Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests. + */ + 'requests'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "distinctAttribute", + "baseName": "distinctAttribute", + "type": "string", + "format": "" + }, + { + "name": "matchAttribute", + "baseName": "matchAttribute", + "type": "string", + "format": "" + }, + { + "name": "requests", + "baseName": "requests", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceConstraint.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceCounterConsumption.ts b/src/gen/models/V1DeviceCounterConsumption.ts new file mode 100644 index 0000000000..51b1c85b44 --- /dev/null +++ b/src/gen/models/V1DeviceCounterConsumption.ts @@ -0,0 +1,53 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1Counter } from '../models/V1Counter.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. +*/ +export class V1DeviceCounterConsumption { + /** + * CounterSet is the name of the set from which the counters defined will be consumed. + */ + 'counterSet': string; + /** + * 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). + */ + 'counters': { [key: string]: V1Counter; }; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "counterSet", + "baseName": "counterSet", + "type": "string", + "format": "" + }, + { + "name": "counters", + "baseName": "counters", + "type": "{ [key: string]: V1Counter; }", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceCounterConsumption.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceRequest.ts b/src/gen/models/V1DeviceRequest.ts new file mode 100644 index 0000000000..141594d4d0 --- /dev/null +++ b/src/gen/models/V1DeviceRequest.ts @@ -0,0 +1,61 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceSubRequest } from '../models/V1DeviceSubRequest.js'; +import { V1ExactDeviceRequest } from '../models/V1ExactDeviceRequest.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests. +*/ +export class V1DeviceRequest { + 'exactly'?: V1ExactDeviceRequest; + /** + * 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. + */ + 'firstAvailable'?: Array; + /** + * 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. + */ + 'name': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "exactly", + "baseName": "exactly", + "type": "V1ExactDeviceRequest", + "format": "" + }, + { + "name": "firstAvailable", + "baseName": "firstAvailable", + "type": "Array", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceRequest.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceRequestAllocationResult.ts b/src/gen/models/V1DeviceRequestAllocationResult.ts new file mode 100644 index 0000000000..2fb9577cda --- /dev/null +++ b/src/gen/models/V1DeviceRequestAllocationResult.ts @@ -0,0 +1,133 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceToleration } from '../models/V1DeviceToleration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceRequestAllocationResult contains the allocation result for one request. +*/ +export class 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. + */ + 'adminAccess'?: boolean; + /** + * BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindingConditions'?: Array; + /** + * BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindingFailureConditions'?: Array; + /** + * 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. + */ + 'consumedCapacity'?: { [key: string]: string; }; + /** + * Device references one device instance via its name in the driver\'s resource pool. It must be a DNS label. + */ + 'device': string; + /** + * Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. + */ + 'driver': string; + /** + * 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. + */ + 'pool': string; + /** + * Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. Multiple devices may have been allocated per request. + */ + 'request': string; + /** + * ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. + */ + 'shareID'?: string; + /** + * 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. + */ + 'tolerations'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "adminAccess", + "baseName": "adminAccess", + "type": "boolean", + "format": "" + }, + { + "name": "bindingConditions", + "baseName": "bindingConditions", + "type": "Array", + "format": "" + }, + { + "name": "bindingFailureConditions", + "baseName": "bindingFailureConditions", + "type": "Array", + "format": "" + }, + { + "name": "consumedCapacity", + "baseName": "consumedCapacity", + "type": "{ [key: string]: string; }", + "format": "" + }, + { + "name": "device", + "baseName": "device", + "type": "string", + "format": "" + }, + { + "name": "driver", + "baseName": "driver", + "type": "string", + "format": "" + }, + { + "name": "pool", + "baseName": "pool", + "type": "string", + "format": "" + }, + { + "name": "request", + "baseName": "request", + "type": "string", + "format": "" + }, + { + "name": "shareID", + "baseName": "shareID", + "type": "string", + "format": "" + }, + { + "name": "tolerations", + "baseName": "tolerations", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceRequestAllocationResult.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceSelector.ts b/src/gen/models/V1DeviceSelector.ts new file mode 100644 index 0000000000..0e75ca886a --- /dev/null +++ b/src/gen/models/V1DeviceSelector.ts @@ -0,0 +1,40 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1CELDeviceSelector } from '../models/V1CELDeviceSelector.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceSelector must have exactly one field set. +*/ +export class V1DeviceSelector { + 'cel'?: V1CELDeviceSelector; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "cel", + "baseName": "cel", + "type": "V1CELDeviceSelector", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceSelector.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceSubRequest.ts b/src/gen/models/V1DeviceSubRequest.ts new file mode 100644 index 0000000000..4fb7f965c7 --- /dev/null +++ b/src/gen/models/V1DeviceSubRequest.ts @@ -0,0 +1,102 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1CapacityRequirements } from '../models/V1CapacityRequirements.js'; +import { V1DeviceSelector } from '../models/V1DeviceSelector.js'; +import { V1DeviceToleration } from '../models/V1DeviceToleration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn\'t expose the AdminAccess field as that one is only supported when requesting a specific device. +*/ +export class V1DeviceSubRequest { + /** + * 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. + */ + 'allocationMode'?: string; + 'capacity'?: V1CapacityRequirements; + /** + * 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. + */ + 'count'?: number; + /** + * 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. + */ + 'deviceClassName': string; + /** + * Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format
/. Must be a DNS label. + */ + 'name': string; + /** + * 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. + */ + 'selectors'?: Array; + /** + * 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. + */ + 'tolerations'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "allocationMode", + "baseName": "allocationMode", + "type": "string", + "format": "" + }, + { + "name": "capacity", + "baseName": "capacity", + "type": "V1CapacityRequirements", + "format": "" + }, + { + "name": "count", + "baseName": "count", + "type": "number", + "format": "int64" + }, + { + "name": "deviceClassName", + "baseName": "deviceClassName", + "type": "string", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + }, + { + "name": "selectors", + "baseName": "selectors", + "type": "Array", + "format": "" + }, + { + "name": "tolerations", + "baseName": "tolerations", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceSubRequest.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceTaint.ts b/src/gen/models/V1DeviceTaint.ts new file mode 100644 index 0000000000..c9b8301b84 --- /dev/null +++ b/src/gen/models/V1DeviceTaint.ts @@ -0,0 +1,72 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. +*/ +export class 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. + */ + 'effect': string; + /** + * The taint key to be applied to a device. Must be a label name. + */ + 'key': string; + /** + * TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. + */ + 'timeAdded'?: Date; + /** + * The taint value corresponding to the taint key. Must be a label value. + */ + 'value'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "effect", + "baseName": "effect", + "type": "string", + "format": "" + }, + { + "name": "key", + "baseName": "key", + "type": "string", + "format": "" + }, + { + "name": "timeAdded", + "baseName": "timeAdded", + "type": "Date", + "format": "date-time" + }, + { + "name": "value", + "baseName": "value", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceTaint.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceToleration.ts b/src/gen/models/V1DeviceToleration.ts new file mode 100644 index 0000000000..766e7913f6 --- /dev/null +++ b/src/gen/models/V1DeviceToleration.ts @@ -0,0 +1,82 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator . +*/ +export class V1DeviceToleration { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. + */ + 'effect'?: string; + /** + * 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. + */ + 'key'?: string; + /** + * 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. + */ + 'operator'?: string; + /** + * 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